aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.h
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index f926998..0bd8b47 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -43,9 +43,15 @@
#endif
#ifdef __cplusplus
-extern "C" {
+# define PUGL_BEGIN_DECLS extern "C" {
+# define PUGL_END_DECLS }
+#else
+# define PUGL_BEGIN_DECLS
+# define PUGL_END_DECLS
#endif
+PUGL_BEGIN_DECLS
+
/**
@defgroup pugl Pugl
Pugl C API.
@@ -1047,8 +1053,6 @@ puglProcessEvents(PuglView* view);
@}
*/
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
+PUGL_END_DECLS
#endif /* PUGL_PUGL_H */