summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglstring.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-05-31 11:47:58 +0800
committerChia-I Wu <[email protected]>2010-05-31 13:27:41 +0800
commit1e6c10f4be9e36cc052a6b47fb2cb1eae60caa00 (patch)
treec9c14d9520bb4fce651652be3dba76342df46817 /src/egl/main/eglstring.h
parent0d820fc203e06d5264430de7262d2c35a8ff1e75 (diff)
egl: Use SConscript for Windows build.
Fix several portability issues and add SConscript for Windows build.
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);