X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f6cbb176d4301cae36a945dfa57e6b6a9cbafef..680abdb047c1a66d3ccc14cad518117773c3cc8c:/include/xbt/sysdep.h diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index fa2012a84b..fac49a749f 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -8,8 +8,8 @@ /* 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. */ -#ifndef _XBT_SYSDEP_H -#define _XBT_SYSDEP_H +#ifndef XBT_SYSDEP_H +#define XBT_SYSDEP_H #include "xbt/log.h" #include "xbt/misc.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 */ @@ -140,4 +136,4 @@ SG_END_DECL() /** @} */ -#endif /* _XBT_SYSDEP_H */ +#endif /* XBT_SYSDEP_H */