From: pini Date: Tue, 18 Jan 2011 14:14:21 +0000 (+0000) Subject: Always add the needed include file. X-Git-Tag: v3.6_beta2~499 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8fe050131314bf1a2d03587cf9b8d6a24304183b Always add the needed include file. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9429 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/smpi/fixsrc.pl b/src/smpi/fixsrc.pl index 096c72050d..845444a913 100755 --- a/src/smpi/fixsrc.pl +++ b/src/smpi/fixsrc.pl @@ -1,14 +1,14 @@ #!/usr/bin/perl +# Add include for mandatory header file +print "#include \n"; + # FIXME: here we make the assumption that people don't do things like put # multiple statements after a declaration, but separated by semicolons. It's a # reasonable assumption for the time being, but technically it could cause # problems for some code. OUTER: while ($line = ) { - if ($line =~ /#include /) { - print "#include \n"; - print "#include \n"; - } elsif ($line =~ /SMPI_VARINIT/) { + if ($line =~ /SMPI_VARINIT/) { do { chomp $line; $line =~ s/\s+/ /g;