diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index 61200538..02554192 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -4,7 +4,7 @@ #include "../imgui/imgui.h" #include "../imgui/imgui_internal.h" -ImVec2 operator+( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x + r.x, l.y + r.y ); } -ImVec2 operator-( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x - r.x, l.y - r.y ); } +static inline ImVec2 operator+( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x + r.x, l.y + r.y ); } +static inline ImVec2 operator-( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x - r.x, l.y - r.y ); } #endif