From: Martin Quinson Date: Mon, 14 Sep 2015 10:11:52 +0000 (+0200) Subject: [MSVC] strcasecmp has a weird name on non-POSIX systems X-Git-Tag: v3_12~195 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc4aff02ade0701a77b7a6ec27ae35d5098e8541 [MSVC] strcasecmp has a weird name on non-POSIX systems --- diff --git a/include/xbt/str.h b/include/xbt/str.h index 2a64e95528..3fb53d24c3 100644 --- a/include/xbt/str.h +++ b/include/xbt/str.h @@ -9,12 +9,17 @@ #ifndef XBT_STR_H #define XBT_STR_H -#include /* va_* */ -#include /* FILE */ #include "xbt/misc.h" #include "xbt/dynar.h" #include "xbt/dict.h" +#include /* va_* */ +#include /* FILE */ + +#ifdef _MSC_VER +#define strcasecmp _stricmp +#endif + SG_BEGIN_DECL() /** @addtogroup XBT_str