wgl: Wrap stw_pixelformat.h into extern C
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Sat, 25 Apr 2020 20:24:41 +0000 (16:24 -0400)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 18 Nov 2020 10:18:24 +0000 (11:18 +0100)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>

src/gallium/frontends/wgl/stw_pixelformat.h

index 25e265a..4a5e83f 100644 (file)
 #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 */