From: Arnaud Giersch Date: Wed, 10 Oct 2012 09:08:40 +0000 (+0200) Subject: Reorder includes. X-Git-Tag: v3_8~92^2~10 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/283928d6552afd14c3a5f2feadbafa8d3d4301e0 Reorder includes. Only include math.h after having changed _*_SOURCE. Otherwise, strange errors may appear, depending on what's included from smx_private.h for example. --- diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index 9344984a17..50b6db4fc5 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -4,6 +4,11 @@ /* 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. */ + +#include "smx_private.h" +#include "mc/mc.h" +#include "xbt/ex.h" + #ifndef _SVID_SOURCE # define _SVID_SOURCE /* strdup() */ #endif @@ -15,10 +20,6 @@ #endif #include /* isfinite() */ -#include "smx_private.h" -#include "mc/mc.h" -#include "xbt/ex.h" - XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix); static const char* simcall_names[] = {