diff --git a/gfx/drivers_context/cgl_ctx.c b/gfx/drivers_context/cgl_ctx.c index af60ea663b..a251cc1a38 100644 --- a/gfx/drivers_context/cgl_ctx.c +++ b/gfx/drivers_context/cgl_ctx.c @@ -41,6 +41,10 @@ typedef int CGSSurfaceID; typedef uint32_t _CGWindowID; +#ifdef __cplusplus +extern "C" { +#endif + /* Undocumented CGS */ extern CGSConnectionID CGSMainConnectionID(void); extern CGError CGSAddSurface(CGSConnectionID cid, _CGWindowID wid, CGSSurfaceID *sid); @@ -50,6 +54,10 @@ extern CGError CGSOrderSurface(CGSConnectionID cid, _CGWindowID wid, CGSSurfaceI /* Undocumented CGL */ extern CGLError CGLSetSurface(CGLContextObj gl, CGSConnectionID cid, CGSWindowID wid, CGSSurfaceID sid); +#ifdef __cplusplus +} +#endif + typedef struct gfx_ctx_cgl_data { CGLContextObj glCtx;