From: José Fonseca <jose.r.fonseca@gmail.com>
Date: Thu, 29 Mar 2012 22:38:55 +0000 (+0100)
Subject: Drop HAVE_EGL.
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=127e4e0b5a6509046ee77f691f690fdce1c84079;p=apitrace

Drop HAVE_EGL.

Unnecessary now that we budle EGL/GLES headers
---

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d42aa1e..5c637b4 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,10 +60,6 @@ else ()
         include_directories (${X11_INCLUDE_DIR})
         add_definitions (-DHAVE_X11)
     endif ()
-
-    if (ENABLE_EGL)
-        add_definitions (-DHAVE_EGL)
-    endif ()
 endif ()
 
 
diff --git a/eglimports.hpp b/eglimports.hpp
index 5443bef..a3e396a 100644
--- a/eglimports.hpp
+++ b/eglimports.hpp
@@ -32,7 +32,13 @@
 #define _EGLIMPORTS_HPP_
 
 
-#ifdef HAVE_EGL
+#include <KHR/khrplatform.h>
+
+#ifdef _GDI32_
+/* Prevent __declspec(dllimport) attribute */
+#undef KHRONOS_APICALL
+#define KHRONOS_APICALL
+#endif
 
 // EGL
 #include <EGL/egl.h>
@@ -45,28 +51,6 @@
 #include <GLES/glplatform.h>
 #include <GLES2/gl2platform.h>
 
-#else // HAVE_EGL
-
-// We always include GLES headers below to have the types and enums defined.
-// For that to work without GLES platform headers, we need to define GL_API,
-// GL_APICALL, and GL_APIENTRY.  It does not matter what they are defined to.
-// When we hit here, EGL/GLES support is disabled and all we need from the
-// headers are the types and enums.
-
-#ifndef GL_API
-#define GL_API GLAPI
-#endif
-
-#ifndef GL_APICALL
-#define GL_APICALL GLAPI
-#endif
-
-#ifndef GL_APIENTRY
-#define GL_APIENTRY APIENTRY
-#endif
-
-#endif //! HAVE_EGL
-
 
 // OpenGL ES 1.1
 typedef int32_t  GLfixed;