diff options
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r-- | pugl/pugl.h | 12 |
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 */ |