CMake: Move UNICODE defines to command line

For consistency's sake, I have not had any build errors that can
be attributed to this.
This commit is contained in:
João Valverde 2021-09-20 23:32:38 +01:00 committed by Wireshark GitLab Utility
parent 6bd1bb4d7c
commit a5a9bb0763
2 changed files with 5 additions and 3 deletions

View File

@ -436,6 +436,11 @@ if(WIN32)
add_definitions(
-DWIN32_LEAN_AND_MEAN
#
# Use Unicode in Windows runtime functions.
#
-DUNICODE
-D_UNICODE
#
# NOMINMAX keeps windows.h from defining "min" and "max" via windef.h.
# This avoids conflicts with the C++ standard library.
#

View File

@ -312,9 +312,6 @@
# ifndef __STDC__
# define __STDC__ 0
# endif
/* Use Unicode in Windows runtime functions. */
# define UNICODE 1
# define _UNICODE 1
#endif
#include <ws_diag_control.h>