A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Hello,
as far as I found out, math.h is included in imgui_internal.h already. So defining USE_MATH_DEFINES or undef M_PI after this include is too late (your include math.h is discarded because of the earlier imgui_internal.h include). So the warning is an earlier result of the include files.
Try the following:
- if you use stdafx.h: put #define USE_MATH_DEFINES at the end of your stdafx.h
- if you don't use stdafx.h: put the define at the beginning of the source file.
If it doesn't help: Try #define _USE_MATH_DEFINES instead of USE_MATH_DEFINES.
Open a new source file and include step-by-step the imgui headers and math.h at different positions. When the warning occurs, try putting undef M_PI in between your include directives.
If all of this does not help, search for #define M_PI in your project because IMGUI uses "IM_PI", not "M_PI". So there is another include of a header that defines M_PI (which is not math.h).
Regards, Guido