From 5de56f95966352cda588d3c830f73dfaa1c19412 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 2 Mar 2020 15:07:49 +0100 Subject: Cleanup: make remaining blenkernel headers work in C++ --- source/blender/blenkernel/BKE_brush.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/BKE_brush.h') diff --git a/source/blender/blenkernel/BKE_brush.h b/source/blender/blenkernel/BKE_brush.h index c7f6c09b886..b6575094202 100644 --- a/source/blender/blenkernel/BKE_brush.h +++ b/source/blender/blenkernel/BKE_brush.h @@ -23,6 +23,12 @@ * General operations for brushes. */ +#include "DNA_object_enums.h" + +#ifdef __cplusplus +extern "C" { +#endif + enum eCurveMappingPreset; struct Brush; struct ImBuf; @@ -34,8 +40,6 @@ struct UnifiedPaintSettings; // enum eCurveMappingPreset; -#include "DNA_object_enums.h" - /* globals for brush execution */ void BKE_brush_system_init(void); void BKE_brush_system_exit(void); @@ -140,4 +144,8 @@ void BKE_brush_scale_size(int *r_brush_size, /* debugging only */ void BKE_brush_debug_print_state(struct Brush *br); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3