Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[MSVC] strcasecmp has a weird name on non-POSIX systems
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 14 Sep 2015 10:11:52 +0000 (12:11 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 17 Sep 2015 12:10:29 +0000 (14:10 +0200)
include/xbt/str.h

index 2a64e95..3fb53d2 100644 (file)
@@ -9,12 +9,17 @@
 #ifndef XBT_STR_H
 #define XBT_STR_H
 
 #ifndef XBT_STR_H
 #define XBT_STR_H
 
-#include <stdarg.h>             /* va_* */
-#include <stdio.h>  /* FILE */
 #include "xbt/misc.h"
 #include "xbt/dynar.h"
 #include "xbt/dict.h"
 
 #include "xbt/misc.h"
 #include "xbt/dynar.h"
 #include "xbt/dict.h"
 
+#include <stdarg.h>             /* va_* */
+#include <stdio.h>  /* FILE */
+
+#ifdef _MSC_VER
+#define strcasecmp _stricmp
+#endif
+
 SG_BEGIN_DECL()
 
 /** @addtogroup XBT_str
 SG_BEGIN_DECL()
 
 /** @addtogroup XBT_str