diff options
Diffstat (limited to 'common/ogl_ctx.h')
-rw-r--r-- | common/ogl_ctx.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/ogl_ctx.h b/common/ogl_ctx.h index 3abe6d71..ae2ce7e1 100644 --- a/common/ogl_ctx.h +++ b/common/ogl_ctx.h @@ -19,6 +19,10 @@ #ifndef _H_GLCTX #define _H_GLCTX +#ifdef __cplusplus +extern "C" { +#endif + typedef struct OGLCtx OGLCtx; const char *oglctx_type_str(OGLCtx *ctx); @@ -27,5 +31,9 @@ OGLCtx *pbuf_create(int width, int heigth); OGLCtx *pixmap_create(int width, int heigth); void oglctx_destroy(OGLCtx *ctx); +#ifdef __cplusplus +} +#endif + #endif |