summaryrefslogtreecommitdiffstats
path: root/common/gl_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/gl_utils.h')
-rw-r--r--common/gl_utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/gl_utils.h b/common/gl_utils.h
index eecff269..175f1316 100644
--- a/common/gl_utils.h
+++ b/common/gl_utils.h
@@ -21,6 +21,10 @@
#ifndef GL_UTILS_H
#define GL_UTILS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef RED_DEBUG
#define GLC_ERROR_TEST_FLUSH { \
GLenum gl_err; glFlush(); \
@@ -102,4 +106,8 @@ static inline int gl_get_to_power_two(unsigned int val)
return 1 << find_msb(val);
}
+#ifdef __cplusplus
+}
+#endif
+
#endif