From 1a89ab3887d98bf7298d20b506ff989c2f02b850 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christophe=20Thi=C3=A9ry?= Date: Wed, 27 Apr 2011 09:01:17 +0200 Subject: [PATCH 1/1] Fix supernovae compilation --- src/mk_supernovae.pl | 11 ++++++++++- src/simix/smx_user.c | 14 ++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) 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" -- 2.20.1