X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ba9a4cfeba4eb00e84cd17603fc9654e81445655..cf33c98cf91e57245e1785ae9d4750c854f6e8a7:/include/xbt/sysdep.h diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index 682e1e2713..6ae59ffaab 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 */ /** @@ -37,11 +37,9 @@ XBT_PUBLIC(void) XBT_ATTRIB_NORETURN xbt_abort(void); * @brief Kill the program with an error message * \param ... a format string and its arguments * - * Things are so messed up that the only thing to do now, is to stop the - * program. + * Things are so messed up that the only thing to do now, is to stop the program. * - * The message is handled by a CRITICAL logging request, and may consist of a - * format string with arguments. + * The message is handled by a CRITICAL logging request, and may consist of a format string with arguments. */ #define xbt_die(...) \ do { \ @@ -62,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;