[winpr,spec] fix windows compatibility

define NONAMELESSUNION to have the same struct definitions under windows
as we have under linux.
This commit is contained in:
akallabeth
2024-10-30 08:58:20 +01:00
committed by Armin Novak
parent 17295d114b
commit 7842891d0f
4 changed files with 28 additions and 8 deletions

View File

@@ -140,6 +140,9 @@ endif()
message(STATUS "Git Revision ${GIT_REVISION}")
# MSVC compatibility with system headers
add_definitions(-DNONAMELESSUNION)
# Make the detected version available as default version for all subprojects
set(FREERDP_DEFAULT_PROJECT_VERSION ${FREERDP_VERSION} CACHE STRING INTERNAL)