summaryrefslogtreecommitdiffstats
path: root/tests/tests.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-06 16:37:44 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-06 16:37:44 +0000
commitc54af1b6644216335361e61e770037aca1527756 (patch)
tree206f7b14798cec287f8f6112b29840664aaf5758 /tests/tests.h
parent4922d448896abe5330f106f21fd6a3b0651ae9eb (diff)
downloaddimension-c54af1b6644216335361e61e770037aca1527756.tar.xz
New GL C++ wrapper.
Diffstat (limited to 'tests/tests.h')
-rw-r--r--tests/tests.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tests.h b/tests/tests.h
index fcb9ad9..30d4002 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -22,6 +22,11 @@
#include <GL/gl.h>
#include <stdio.h>
+#ifdef __cplusplus
+/* We've been included from a C++ file; mark everything here as extern "C" */
+extern "C" {
+#endif
+
/*
* Convenience
*/
@@ -53,3 +58,7 @@ void dmnsn_display_frame(dmnsn_display *display);
/* Print a progress bar of the progress of `progress' */
void progressbar(const char *str, const dmnsn_progress *progress);
+
+#ifdef __cplusplus
+}
+#endif