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
|
||||
|
||||
#if BEAST_NUDB_WIN32_FILE
|
||||
#pragma push_macro("NOMINMAX")
|
||||
#pragma push_macro("UNICODE")
|
||||
#pragma push_macro("STRICT")
|
||||
# ifndef NOMINMAX
|
||||
# define NOMINMAX
|
||||
# endif
|
||||
@@ -46,9 +49,9 @@
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# include <Windows.h>
|
||||
# undef NOMINMAX
|
||||
# undef UNICODE
|
||||
# undef STRICT
|
||||
#pragma pop_macro("STRICT")
|
||||
#pragma pop_macro("UNICODE")
|
||||
#pragma pop_macro("NOMINMAX")
|
||||
#endif
|
||||
|
||||
namespace beast {
|
||||
|
||||
Reference in New Issue
Block a user