aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldriver.c
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/egldriver.c
parent0d820fc203e06d5264430de7262d2c35a8ff1e75 (diff)
egl: Use SConscript for Windows build.
Fix several portability issues and add SConscript for Windows build.
Diffstat (limited to 'src/egl/main/egldriver.c')
-rw-r--r--src/egl/main/egldriver.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c
index 2f42e64fbe0..631a8710ac5 100644
--- a/src/egl/main/egldriver.c
+++ b/src/egl/main/egldriver.c
@@ -7,6 +7,8 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+
+#include "eglstring.h"
#include "eglconfig.h"
#include "eglcontext.h"
#include "egldefines.h"
@@ -36,8 +38,8 @@
/* XXX Need to decide how to do dynamic name lookup on Windows */
-static const char DefaultDriverNames[] = {
- "TBD",
+static const char *DefaultDriverNames[] = {
+ "egl_gdi_swrast"
};
typedef HMODULE lib_handle;
@@ -411,7 +413,7 @@ _eglGetSearchPath(void)
#endif /* _EGL_PLATFORM_POSIX */
if (p) {
- ret = snprintf(buffer, sizeof(buffer),
+ ret = _eglsnprintf(buffer, sizeof(buffer),
"%s:%s", p, _EGL_DRIVER_SEARCH_DIR);
if (ret > 0 && ret < sizeof(buffer))
search_path = buffer;
@@ -483,7 +485,7 @@ _eglPreloadDisplayDrivers(void)
if (!dpy || !dpy[0])
return EGL_FALSE;
- ret = snprintf(prefix, sizeof(prefix), "egl_%s_", dpy);
+ ret = _eglsnprintf(prefix, sizeof(prefix), "egl_%s_", dpy);
if (ret < 0 || ret >= sizeof(prefix))
return EGL_FALSE;