summaryrefslogtreecommitdiffstats
path: root/src/glx/glx_error.h
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2016-04-26 19:48:12 +0100
committerJose Fonseca <[email protected]>2016-04-26 21:28:34 +0100
commit52c7443932bd38d6708fcab2a8dfcc7ed3d678f2 (patch)
tree4a26c06135a268d3d3220cce432052f5596bba00 /src/glx/glx_error.h
parent80e5fb60b40c491acd182dc451236b71e55c11ea (diff)
glx: Don't enclose includes inside `extern "C" { }`.
Ran `make check` inside src/glx to verify everything compiles and links correctly. https://bugs.freedesktop.org/show_bug.cgi?id=95158 Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/glx/glx_error.h')
-rw-r--r--src/glx/glx_error.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glx/glx_error.h b/src/glx/glx_error.h
index eaf6b814c5e..5d3992672e0 100644
--- a/src/glx/glx_error.h
+++ b/src/glx/glx_error.h
@@ -31,9 +31,17 @@
#include <X11/Xlib.h>
#include <xcb/xcb.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void __glXSendError(Display * dpy, int_fast8_t errorCode,
uint_fast32_t resourceID, uint_fast16_t minorCode,
bool coreX11error);
_X_HIDDEN void __glXSendErrorForXcb(Display * dpy,
const xcb_generic_error_t *err);
+
+#ifdef __cplusplus
+}
+#endif