diff options
Diffstat (limited to 'include/epoxy/egl.h')
| -rw-r--r-- | include/epoxy/egl.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/epoxy/egl.h b/include/epoxy/egl.h index f1c3f56..a084f00 100644 --- a/include/epoxy/egl.h +++ b/include/epoxy/egl.h @@ -30,12 +30,10 @@ #ifndef EPOXY_EGL_H #define EPOXY_EGL_H -#ifdef __cplusplus -extern "C" { -#endif - #include <stdbool.h> +#include "epoxy/common.h" + #if defined(__egl_h_) || defined(__eglext_h_) #error epoxy/egl.h must be included before (or in place of) GL/egl.h #else @@ -45,11 +43,11 @@ extern "C" { #include "epoxy/egl_generated.h" +EPOXY_BEGIN_DECLS + bool epoxy_has_egl_extension(EGLDisplay dpy, const char *extension); int epoxy_egl_version(EGLDisplay dpy); -#ifdef __cplusplus -} /* extern "C" */ -#endif +EPOXY_END_DECLS #endif /* EPOXY_EGL_H */ |
