X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6f48d1a65eeb69ebae17feb1d714db4a60764a51..a79a8e1cab86ccc687cfbc97b01b735acb996f16:/include/xbt/sysdep.h diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index fa2012a84b..82f2c24b86 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -17,12 +17,12 @@ #include "simgrid_config.h" -SG_BEGIN_DECL() - #include #include #include /* va_list */ +SG_BEGIN_DECL() + /* They live in asserts.h, but need to be declared before this module. double declaration to cut dependency cycle */ /** @@ -60,10 +60,6 @@ XBT_LOG_EXTERNAL_CATEGORY(xbt); * @{ */ -#if defined(_MSC_VER) && !defined(strdup) -# define strdup _strdup /* POSIX name is not ANSI complient blabla */ -#endif - /** @brief Like strdup, but xbt_die() on error */ static XBT_ALWAYS_INLINE char *xbt_strdup(const char *s) { char *res = NULL; @@ -75,7 +71,7 @@ static XBT_ALWAYS_INLINE char *xbt_strdup(const char *s) { return res; } -XBT_PUBLIC(void) xbt_backtrace_display_current(void); +XBT_PUBLIC(void) xbt_backtrace_display_current(); /** @brief Like malloc, but xbt_die() on error @hideinitializer */