diff --git a/imgui_extra_math.inl b/imgui_extra_math.inl index 8e2347f7..a460beb6 100644 --- a/imgui_extra_math.inl +++ b/imgui_extra_math.inl @@ -30,12 +30,12 @@ inline bool operator!=(const ImVec2& lhs, const ImVec2& rhs) return lhs.x != rhs.x || lhs.y != rhs.y; } # endif - +# if IMGUI_VERSION_NUM < 19268 inline ImVec2 operator*(const float lhs, const ImVec2& rhs) { return ImVec2(lhs * rhs.x, lhs * rhs.y); } - +#endif # if IMGUI_VERSION_NUM < 18955 inline ImVec2 operator-(const ImVec2& lhs) {