From 039cc329178e9f7b14f514850479648c38fe1ea3 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 13 Jan 2022 16:35:32 +0100 Subject: Outliner: Compile all Outliner files in C++ We want to refactor quite some of the Outliner code using C++, this is a logical step to help the transition to a new architecture. Includes plenty of fixes to make this compile without warnings, trying not to change logic. The usual stuff (casts from `void *`, designated initializers, compound literals, etc.). --- source/blender/windowmanager/WM_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 3d56303a424..d1f790ce3e2 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -118,6 +118,7 @@ struct wmOperator; struct wmWindowManager; #include "BLI_compiler_attrs.h" +#include "BLI_utildefines.h" #include "DNA_listBase.h" #include "DNA_uuid_types.h" #include "DNA_vec_types.h" @@ -976,6 +977,7 @@ typedef enum eWM_DragFlags { WM_DRAG_NOP = 0, WM_DRAG_FREE_DATA = 1, } eWM_DragFlags; +ENUM_OPERATORS(eWM_DragFlags, WM_DRAG_FREE_DATA) /* NOTE: structs need not exported? */ -- cgit v1.2.3