-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpatch_fix_ifdefs.diff
More file actions
22 lines (18 loc) · 797 Bytes
/
patch_fix_ifdefs.diff
File metadata and controls
22 lines (18 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/Sources/CImGui/include/cimgui.h b/Sources/CImGui/include/cimgui.h
index 5688e9d..699bce8 100644
--- a/Sources/CImGui/include/cimgui.h
+++ b/Sources/CImGui/include/cimgui.h
@@ -38,7 +38,7 @@ typedef unsigned __int64 ImU64;
#endif
-#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
+#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef struct ImDrawChannel ImDrawChannel;
typedef struct ImDrawCmd ImDrawCmd;
@@ -2774,7 +2774,7 @@ struct SDL_Window;
typedef union SDL_Event SDL_Event;
#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS
-#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
+#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef struct ImGuiStorage::ImGuiStoragePair ImGuiStoragePair;
typedef struct ImGuiTextFilter::ImGuiTextRange ImGuiTextRange;
typedef ImStb::STB_TexteditState STB_TexteditState;