summaryrefslogtreecommitdiff
path: root/src/egl/main/eglstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/eglstring.h')
-rw-r--r--src/egl/main/eglstring.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/egl/main/eglstring.h b/src/egl/main/eglstring.h
index 10468636e87..bebb758dd82 100644
--- a/src/egl/main/eglstring.h
+++ b/src/egl/main/eglstring.h
@@ -1,6 +1,15 @@
#ifndef EGLSTRING_INCLUDED
#define EGLSTRING_INCLUDED
+#include <string.h>
+
+#ifdef _EGL_PLATFORM_WINDOWS
+#define _eglstrcasecmp _stricmp
+#define _eglsnprintf _snprintf
+#else
+#define _eglstrcasecmp strcasecmp
+#define _eglsnprintf snprintf
+#endif
extern char *
_eglstrdup(const char *s);