Module: Mesa
Branch: master
Commit: 6b024464e80d035fe92c9c15761a0ac269a8ad51
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b024464e80d035fe92c9c15761a0ac269a8ad51

Author: José Fonseca <[email protected]>
Date:   Thu Mar  1 06:37:18 2012 +0000

egl: Don't include strings.h on Windows.

strings.h is needed for the declaration of strcasecmp(), but only on
non-Windows platforms.

---

 src/egl/main/egllog.c    |    1 -
 src/egl/main/eglstring.h |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c
index 38a896b..5ed8341 100644
--- a/src/egl/main/egllog.c
+++ b/src/egl/main/egllog.c
@@ -38,7 +38,6 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <strings.h>
 
 #include "egllog.h"
 #include "eglstring.h"
diff --git a/src/egl/main/eglstring.h b/src/egl/main/eglstring.h
index d3ab435..aab466b 100644
--- a/src/egl/main/eglstring.h
+++ b/src/egl/main/eglstring.h
@@ -38,6 +38,7 @@
 #define _eglstrcasecmp _stricmp
 #define _eglsnprintf _snprintf
 #else
+#include <strings.h> // for strcasecmp
 #define _eglstrcasecmp strcasecmp
 #define _eglsnprintf snprintf
 #endif

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to