diff options
author | Chia-I Wu <[email protected]> | 2010-05-31 11:47:58 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-05-31 13:27:41 +0800 |
commit | 1e6c10f4be9e36cc052a6b47fb2cb1eae60caa00 (patch) | |
tree | c9c14d9520bb4fce651652be3dba76342df46817 /src/egl/main/eglapi.c | |
parent | 0d820fc203e06d5264430de7262d2c35a8ff1e75 (diff) |
egl: Use SConscript for Windows build.
Fix several portability issues and add SConscript for Windows build.
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r-- | src/egl/main/eglapi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 1a533e0880b..9912043e06c 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -56,6 +56,8 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> + +#include "eglstring.h" #include "eglcontext.h" #include "egldisplay.h" #include "egltypedefs.h" @@ -284,7 +286,7 @@ eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) disp->APImajor = major_int; disp->APIminor = minor_int; - snprintf(disp->Version, sizeof(disp->Version), + _eglsnprintf(disp->Version, sizeof(disp->Version), "%d.%d (%s)", major_int, minor_int, drv->Name); /* limit to APIs supported by core */ |