From: Christophe ThiƩry Date: Wed, 27 Apr 2011 07:01:17 +0000 (+0200) Subject: Fix supernovae compilation X-Git-Tag: v3_6_rc3~90 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1a89ab3887d98bf7298d20b506ff989c2f02b850?hp=d1e291eec40a7d4eb0a80312819bc8b912057e4e Fix supernovae compilation --- diff --git a/src/mk_supernovae.pl b/src/mk_supernovae.pl index 5eb51000a6..bd99ab4238 100755 --- a/src/mk_supernovae.pl +++ b/src/mk_supernovae.pl @@ -44,7 +44,16 @@ open OUT, ">$outfile" or die "ERROR: cannot open $outfile: $!\n"; print OUT < #include "portable.h" diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index fb7560746e..243adf3082 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -4,10 +4,16 @@ /* 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. */ -#define _SVID_SOURCE /* strdup */ -#define _ISO_C99_SOURCE /* isfinite() */ -#define _ISOC99_SOURCE /* isfinite() */ -#include /* isfinite() */ +#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 /* isfinite() */ #include "private.h" #include "mc/mc.h"