Skip to content

Commit

Permalink
Fixed imgui_single_file.h for IMGUI_DEFINE_MATH_OPERATORS change. (#6164
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Feb 15, 2023
1 parent a1b8457 commit 752603b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions misc/single_file/imgui_single_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
// #define IMGUI_IMPLEMENTATION
// Before you include this file in *one* C++ file to create the implementation.
// Using this in your project will leak the contents of imgui_internal.h and ImVec2 operators in this compilation unit.

#ifdef IMGUI_IMPLEMENTATION
#define IMGUI_DEFINE_MATH_OPERATORS
#endif

#include "../../imgui.h"
#ifdef IMGUI_ENABLE_FREETYPE
#include "../../misc/freetype/imgui_freetype.h"
Expand Down

0 comments on commit 752603b

Please sign in to comment.