summaryrefslogtreecommitdiff
path: root/include/epoxy/gl.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-04 15:37:27 -0800
committerEric Anholt <eric@anholt.net>2013-12-04 23:07:13 -0800
commit725b8cfc818514a455a8f412592f73f0305068d8 (patch)
treef3504185d7bf0042e5470a765f65d1f2ada1740e /include/epoxy/gl.h
parentde70a2a0abfade6fa3fb4876f4c90e3715e9b70f (diff)
downloadlibepoxy-725b8cfc818514a455a8f412592f73f0305068d8.tar.gz
Add C++ guards.
Diffstat (limited to 'include/epoxy/gl.h')
-rw-r--r--include/epoxy/gl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/epoxy/gl.h b/include/epoxy/gl.h
index 2b3bbaf..71f06ad 100644
--- a/include/epoxy/gl.h
+++ b/include/epoxy/gl.h
@@ -37,6 +37,10 @@
#ifndef __EPOXY_GL_H
#define __EPOXY_GL_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if defined(__gl_h_) || defined(__glext_h_)
#error epoxy/gl.h must be included before (or in place of) GL/gl.h
#else
@@ -49,4 +53,8 @@
#include "epoxy/gl_generated.h"
#include "epoxy/gl_generated_vtable_defines.h"
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* __EPOXY_GL_H */