[mingw] fix build issues on debian 12

This commit is contained in:
akallabeth 2023-08-01 11:02:45 +02:00 committed by akallabeth
parent 5ecc011c13
commit 2b84309b10
3 changed files with 11 additions and 1 deletions

View File

@ -161,7 +161,12 @@ IF(SDL2TTF_LIBRARY_TEMP)
ENDIF(MINGW)
# Set the final string here so the GUI reflects the final state.
SET(SDL2TTF_LIBRARY "${SDL2TTF_LIBRARY_TEMP};${FREETYPE_LIBRARY_TEMP}" CACHE STRING "Where the SDL2TTF Library can be found")
if(FREETYPE_LIBRARY_TEMP)
SET(SDL2TTF_LIBRARY "${SDL2TTF_LIBRARY_TEMP};${FREETYPE_LIBRARY_TEMP}" CACHE STRING "Where the SDL2TTF Library can be found")
else()
SET(SDL2TTF_LIBRARY "${SDL2TTF_LIBRARY_TEMP}" CACHE STRING "Where the SDL2TTF Library can be found")
endif()
# Set the temp variable to INTERNAL so it is not seen in the CMake GUI
SET(SDL2TTF_LIBRARY_TEMP "${SDL2TTF_LIBRARY_TEMP}" CACHE INTERNAL "")
SET(FREETYPE_LIBRARY_TEMP "${FREETYPE_LIBRARY_TEMP}" CACHE INTERNAL "")

View File

@ -36,6 +36,10 @@
#define RPC_S_COOKIE_AUTH_FAILED 0x00000729
#endif
#ifndef ERROR_OPERATION_IN_PROGRESS
#define ERROR_OPERATION_IN_PROGRESS 0x00000149
#endif
#else
#ifndef NO_ERROR

View File

@ -19,6 +19,7 @@ winpr_module_add(wtsapi.c)
if(WIN32)
winpr_module_add(wtsapi_win32.c wtsapi_win32.h)
winpr_library_add_private(ntdll)
endif()
if(BUILD_TESTING)