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:
guishe 2023-06-01 12:26:34 +02:00 committed by Jacques Lucke
parent d3e5c1bfa6
commit f957fd227e
1 changed files with 7 additions and 1 deletions

View File

@ -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