mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Safer macro restoration using MSVC extensions
This commit is contained in:
@@ -33,6 +33,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BEAST_NUDB_WIN32_FILE
|
#if BEAST_NUDB_WIN32_FILE
|
||||||
|
#pragma push_macro("NOMINMAX")
|
||||||
|
#pragma push_macro("UNICODE")
|
||||||
|
#pragma push_macro("STRICT")
|
||||||
# ifndef NOMINMAX
|
# ifndef NOMINMAX
|
||||||
# define NOMINMAX
|
# define NOMINMAX
|
||||||
# endif
|
# endif
|
||||||
@@ -46,9 +49,9 @@
|
|||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
# endif
|
# endif
|
||||||
# include <Windows.h>
|
# include <Windows.h>
|
||||||
# undef NOMINMAX
|
#pragma pop_macro("STRICT")
|
||||||
# undef UNICODE
|
#pragma pop_macro("UNICODE")
|
||||||
# undef STRICT
|
#pragma pop_macro("NOMINMAX")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
|||||||
Reference in New Issue
Block a user