Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-28 17:32:30 +0300
committerJacques Lucke <jacques@blender.org>2020-07-28 17:33:43 +0300
commitb274d18aec525621bcb0a2234fc65e09398616c2 (patch)
treeec4310013623197f5bac2eb51c200503d898bd06 /source/blender/windowmanager/wm_draw.h
parent9c1da81a4c173437c1e556afde7b32eef4b0a47d (diff)
Cleanup: correct usage of extern-C blocks in various places
This removes extern-C blocks around other includes and adds such blocks for some headers that need them.
Diffstat (limited to 'source/blender/windowmanager/wm_draw.h')
-rw-r--r--source/blender/windowmanager/wm_draw.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm_draw.h b/source/blender/windowmanager/wm_draw.h
index ff2fc25333a..a675647f57a 100644
--- a/source/blender/windowmanager/wm_draw.h
+++ b/source/blender/windowmanager/wm_draw.h
@@ -30,6 +30,10 @@ struct GPUOffScreen;
struct GPUTexture;
struct GPUViewport;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct wmDrawBuffer {
struct GPUOffScreen *offscreen;
struct GPUViewport *viewport;
@@ -50,4 +54,8 @@ void wm_draw_region_test(struct bContext *C, struct ScrArea *area, struct ARegio
struct GPUTexture *wm_draw_region_texture(struct ARegion *region, int view);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __WM_DRAW_H__ */