Fix warning when IMGUI_DEFINE_MATH_OPERATORS is already defined by build system. (#1950)

This commit is contained in:
Rokas Kupstys 2018-07-17 18:17:56 +03:00 committed by omar
parent 0c207b7bc9
commit 7e59eb026b
2 changed files with 4 additions and 0 deletions

View File

@ -794,7 +794,9 @@
#endif
#include "imgui.h"
#ifndef IMGUI_DEFINE_MATH_OPERATORS
#define IMGUI_DEFINE_MATH_OPERATORS
#endif
#include "imgui_internal.h"
#include <ctype.h> // toupper, isprint

View File

@ -14,7 +14,9 @@
#endif
#include "imgui.h"
#ifndef IMGUI_DEFINE_MATH_OPERATORS
#define IMGUI_DEFINE_MATH_OPERATORS
#endif
#include "imgui_internal.h"
#include <stdio.h> // vsnprintf, sscanf, printf