egl: Don't include strings.h on Windows.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 1 Mar 2012 06:37:18 +0000 (06:37 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 1 Mar 2012 06:37:30 +0000 (06:37 +0000)
strings.h is needed for the declaration of strcasecmp(), but only on
non-Windows platforms.

src/egl/main/egllog.c
src/egl/main/eglstring.h

index 38a896b..5ed8341 100644 (file)
@@ -38,7 +38,6 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <strings.h>
 
 #include "egllog.h"
 #include "eglstring.h"
index d3ab435..aab466b 100644 (file)
@@ -38,6 +38,7 @@
 #define _eglstrcasecmp _stricmp
 #define _eglsnprintf _snprintf
 #else
+#include <strings.h> // for strcasecmp
 #define _eglstrcasecmp strcasecmp
 #define _eglsnprintf snprintf
 #endif