Avoid polluting the compiler's namespace with our own stuff.

We can't completely avoid it, since gl's headers use these defines for
their header guards, and we really do need to stop the system GL
headers from doing anything.

Fixes #14
macos/v1.5.9
Eric Anholt 11 years ago
parent d653a87e46
commit f10bff9bc0
  1. 6
      include/epoxy/egl.h
  2. 6
      include/epoxy/gl.h
  3. 6
      include/epoxy/glx.h
  4. 6
      include/epoxy/wgl.h

@ -27,8 +27,8 @@
* function pointers * function pointers
*/ */
#ifndef __EPOXY_EGL_H #ifndef EPOXY_EGL_H
#define __EPOXY_EGL_H #define EPOXY_EGL_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -52,4 +52,4 @@ int epoxy_egl_version(EGLDisplay *dpy);
} /* extern "C" */ } /* extern "C" */
#endif #endif
#endif /* __EPOXY_EGL_H */ #endif /* EPOXY_EGL_H */

@ -27,8 +27,8 @@
* global function pointers or a hidden vtable. * global function pointers or a hidden vtable.
*/ */
#ifndef __EPOXY_GL_H #ifndef EPOXY_GL_H
#define __EPOXY_GL_H #define EPOXY_GL_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -85,4 +85,4 @@ int epoxy_gl_version(void);
} /* extern "C" */ } /* extern "C" */
#endif #endif
#endif /* __EPOXY_GL_H */ #endif /* EPOXY_GL_H */

@ -27,8 +27,8 @@
* function pointers. * function pointers.
*/ */
#ifndef __EPOXY_GLX_H #ifndef EPOXY_GLX_H
#define __EPOXY_GLX_H #define EPOXY_GLX_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -55,4 +55,4 @@ int epoxy_glx_version(Display *dpy, int screen);
} /* extern "C" */ } /* extern "C" */
#endif #endif
#endif /* __EPOXY_GLX_H */ #endif /* EPOXY_GLX_H */

@ -27,8 +27,8 @@
* vtable. * vtable.
*/ */
#ifndef __EPOXY_WGL_H #ifndef EPOXY_WGL_H
#define __EPOXY_WGL_H #define EPOXY_WGL_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -55,4 +55,4 @@ void epoxy_handle_external_wglMakeCurrent(void);
} /* extern "C" */ } /* extern "C" */
#endif #endif
#endif /* __EPOXY_WGL_H */ #endif /* EPOXY_WGL_H */

Loading…
Cancel
Save