Only include math.h after having changed _*_SOURCE. Otherwise, strange
errors may appear, depending on what's included from smx_private.h for
example.
/* 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
#endif
#include <math.h> /* isfinite() */
-#include "smx_private.h"
-#include "mc/mc.h"
-#include "xbt/ex.h"
-
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
static const char* simcall_names[] = {