#include "eglstring.h"
#include "eglsurface.h"
-#if defined(_EGL_PLATFORM_X)
+#if defined(_EGL_PLATFORM_POSIX)
#include <dlfcn.h>
#include <sys/types.h>
#include <dirent.h>
}
-#elif defined(_EGL_PLATFORM_X)
+#elif defined(_EGL_PLATFORM_POSIX)
static const char DefaultDriverName[] = "egl_softpipe";
/* XXX untested */
if (lib)
mainFunc = (_EGLMain_t) GetProcAddress(lib, "_eglMain");
-#elif defined(_EGL_PLATFORM_X)
+#elif defined(_EGL_PLATFORM_POSIX)
if (lib) {
mainFunc = (_EGLMain_t) dlsym(lib, "_eglMain");
if (!mainFunc)
static EGLBoolean
_eglPreloadUserDriver(void)
{
-#if defined(_EGL_PLATFORM_X) || defined(_EGL_PLATFORM_WINDOWS)
+#if defined(_EGL_PLATFORM_POSIX) || defined(_EGL_PLATFORM_WINDOWS)
_EGLDriver *drv;
char *env, *path;
const char *suffix, *p;
_eglGlobal.Drivers[_eglGlobal.NumDrivers++] = drv;
return EGL_TRUE;
-#else /* _EGL_PLATFORM_X || _EGL_PLATFORM_WINDOWS */
+#else /* _EGL_PLATFORM_POSIX || _EGL_PLATFORM_WINDOWS */
return EGL_FALSE;
#endif
}
static EGLBoolean
_eglPreloadDisplayDrivers(void)
{
-#if defined(_EGL_PLATFORM_X)
+#if defined(_EGL_PLATFORM_POSIX)
const char *dpy, *suffix;
char path[1024], prefix[32];
DIR *dirp;
closedir(dirp);
return (_eglGlobal.NumDrivers > 0);
-#else /* _EGL_PLATFORM_X */
+#else /* _EGL_PLATFORM_POSIX */
return EGL_FALSE;
#endif
}
const char *es2_libname = "libGLESv2.dll";
const char *gl_libname = "OpenGL32.dll";
const char *vg_libname = "libOpenVG.dll";
-#elif defined(_EGL_PLATFORM_X)
+#elif defined(_EGL_PLATFORM_POSIX)
const char *es1_libname = "libGLESv1_CM.so";
const char *es2_libname = "libGLESv2.so";
const char *gl_libname = "libGL.so";