egl: Fix EGL_VERSION string.
[mesa.git] / src / egl / main / eglstring.h
index 10468636e87bfbf6d167e0f8423fda965dfa2d17..d4c89541362b359b66ba41dc5bf6d319d9a59f11 100644 (file)
@@ -1,6 +1,16 @@
 #ifndef EGLSTRING_INCLUDED
 #define EGLSTRING_INCLUDED
 
+#include <string.h>
+#include <stdio.h>
+
+#ifdef _EGL_OS_WINDOWS
+#define _eglstrcasecmp _stricmp
+#define _eglsnprintf _snprintf
+#else
+#define _eglstrcasecmp strcasecmp
+#define _eglsnprintf snprintf
+#endif
 
 extern char *
 _eglstrdup(const char *s);