diff --git a/imgui.cpp b/imgui.cpp index 499ac2ea..7f5ecc40 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -794,7 +794,9 @@ #endif #include "imgui.h" +#ifndef IMGUI_DEFINE_MATH_OPERATORS #define IMGUI_DEFINE_MATH_OPERATORS +#endif #include "imgui_internal.h" #include // toupper, isprint diff --git a/imgui_draw.cpp b/imgui_draw.cpp index a192fff4..0f69a82b 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -14,7 +14,9 @@ #endif #include "imgui.h" +#ifndef IMGUI_DEFINE_MATH_OPERATORS #define IMGUI_DEFINE_MATH_OPERATORS +#endif #include "imgui_internal.h" #include // vsnprintf, sscanf, printf