diff --git a/src/gallium/frontends/wgl/stw_pixelformat.h b/src/gallium/frontends/wgl/stw_pixelformat.h index 25e265a12bb..4a5e83fd275 100644 --- a/src/gallium/frontends/wgl/stw_pixelformat.h +++ b/src/gallium/frontends/wgl/stw_pixelformat.h @@ -38,6 +38,10 @@ #include "pipe/p_format.h" #include "frontend/api.h" +#ifdef __cplusplus +extern "C" { +#endif + struct stw_pixelformat_info { PIXELFORMATDESCRIPTOR pfd; @@ -68,4 +72,8 @@ stw_pixelformat_choose( HDC hdc, int stw_pixelformat_get(HDC hdc); +#ifdef __cplusplus +} +#endif + #endif /* STW_PIXELFORMAT_H */