Fix: Avoid windows.h min/max macro definition in BLI_winstuff.h
When moving io_allembic to c++, the compiler would throw the error `type "unknown-type" unexpected`. Pull Request: https://projects.blender.org/blender/blender/pulls/108471
This commit is contained in:
parent
d3e5c1bfa6
commit
f957fd227e
|
@ -17,7 +17,13 @@
|
|||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#include <windows.h>
|
||||
#ifndef NOMINMAX
|
||||
# define NOMINMAX
|
||||
# include <windows.h>
|
||||
# undef NOMINMAX
|
||||
#else
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#undef rad
|
||||
#undef rad1
|
||||
|
|
Loading…
Reference in New Issue