]> AND Public Git Repository - simgrid.git/blobdiff - src/mk_supernovae.pl
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add callbacks for surf_exit.
[simgrid.git] / src / mk_supernovae.pl
old mode 100755 (executable)
new mode 100644 (file)
index 5eb5100..e0ea6dc
@@ -1,5 +1,11 @@
 #! /usr/bin/perl
 
+# Copyright (c) 2010-2011, 2014. The SimGrid Team.
+# All rights reserved.
+
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the license (GNU LGPL) which comes with this package.
+
 use strict;
 use Getopt::Long qw(GetOptions);
 
@@ -44,7 +50,16 @@ open OUT, ">$outfile" or die "ERROR: cannot open $outfile: $!\n";
 print OUT <<EOF
 #define SUPERNOVAE_MODE 1
 #ifndef _GNU_SOURCE
-#  define _GNU_SOURCE   /* for getline() with older libc */
+#  define _GNU_SOURCE     /* for getline() with older libc */
+#endif
+#ifndef _SVID_SOURCE
+#  define _SVID_SOURCE    /* strdup() */
+#endif
+#ifndef _ISOC99_SOURCE
+#  define _ISOC99_SOURCE  /* isfinite() */
+#endif
+#ifndef _ISO_C99_SOURCE
+#  define _ISO_C99_SOURCE /* isfinite() */
 #endif
 #include <ctype.h>
 #include "portable.h"