Add C++ guards.

macos/v1.5.9
Eric Anholt 11 years ago
parent de70a2a0ab
commit 725b8cfc81
  1. 8
      include/epoxy/gl.h
  2. 8
      include/epoxy/glx.h

@ -37,6 +37,10 @@
#ifndef __EPOXY_GL_H #ifndef __EPOXY_GL_H
#define __EPOXY_GL_H #define __EPOXY_GL_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(__gl_h_) || defined(__glext_h_) #if defined(__gl_h_) || defined(__glext_h_)
#error epoxy/gl.h must be included before (or in place of) GL/gl.h #error epoxy/gl.h must be included before (or in place of) GL/gl.h
#else #else
@ -49,4 +53,8 @@
#include "epoxy/gl_generated.h" #include "epoxy/gl_generated.h"
#include "epoxy/gl_generated_vtable_defines.h" #include "epoxy/gl_generated_vtable_defines.h"
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __EPOXY_GL_H */ #endif /* __EPOXY_GL_H */

@ -35,6 +35,10 @@
#ifndef __EPOXY_GLX_H #ifndef __EPOXY_GLX_H
#define __EPOXY_GLX_H #define __EPOXY_GLX_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(GLX_H) || defined(__glxext_h_) #if defined(GLX_H) || defined(__glxext_h_)
#error epoxy/glx.h must be included before (or in place of) GL/glx.h #error epoxy/glx.h must be included before (or in place of) GL/glx.h
#else #else
@ -48,4 +52,8 @@
#include "epoxy/glx_generated.h" #include "epoxy/glx_generated.h"
#include "epoxy/glx_generated_vtable_defines.h" #include "epoxy/glx_generated_vtable_defines.h"
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __EPOXY_GLX_H */ #endif /* __EPOXY_GLX_H */

Loading…
Cancel
Save