diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-01-24 15:31:46 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-01-25 12:43:17 +0000 |
commit | 0625a74d69f762df8d411bc0451927424aee1f2c (patch) | |
tree | 910d4995114f4accaacaf128427b8f4d0df860e8 /include/epoxy/egl.h | |
parent | 41bea9e0fbea83654b49ea5d0f37650626003b65 (diff) | |
download | libepoxy-0625a74d69f762df8d411bc0451927424aee1f2c.tar.gz |
Add common header
We're going to use this header to provide shared macros. Right now, we
can use it to replace the:
#ifdef __cplusplus
extern "C" {
#endif
…
#ifdef __cplusplus
}
#endif
Stanzas for every installed header, with easier to read macros in the
same spirit of Cairo and GLib.
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 */ |