X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=eglimports.hpp;h=a3e396abf8046d63ffb373b215c8cc03f7030bc6;hb=127e4e0b5a6509046ee77f691f690fdce1c84079;hp=5443bef61d3bddb633a1362761951be7c992855e;hpb=570322c2f6e2b79df307872297b5a9b643eedd48;p=apitrace 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 + +#ifdef _GDI32_ +/* Prevent __declspec(dllimport) attribute */ +#undef KHRONOS_APICALL +#define KHRONOS_APICALL +#endif // EGL #include @@ -45,28 +51,6 @@ #include #include -#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;