Fixed *_EXPORTS

This commit is contained in:
akallabeth 2022-02-28 16:26:57 +01:00 committed by akallabeth
parent c25d15d1d6
commit 70ea2eef46
2 changed files with 2 additions and 4 deletions

View File

@ -72,9 +72,7 @@ include(GNUInstallDirsWrapper)
include(CMakePackageConfigHelpers)
include (SetFreeRDPCMakeInstallDir)
if(BUILD_SHARED_LIBS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DRDTK_EXPORTS")
endif()
add_definitions(-DRDTK_EXPORTS)
if (NOT IOS)
check_include_files(stdbool.h WINPR_HAVE_STDBOOL_H)

View File

@ -278,7 +278,7 @@ if(BUILD_SHARED_LIBS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWINPR_DLL")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWINPR_EXPORTS")
add_definitions(-DWINPR_EXPORTS)
# Enable 64bit file support on linux and FreeBSD.
if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" OR FREEBSD)