windows build: use different .def file for xp

Use different def file for windows < 5.1.
(cherry picked from commit 57d295441f)
This commit is contained in:
Bernhard Miklautz 2013-10-07 15:03:50 +02:00 committed by Bernhard Miklautz
parent 5360f59940
commit 30de5b226d
3 changed files with 20 additions and 2 deletions

View File

@ -22,7 +22,11 @@ set(${MODULE_PREFIX}_SRCS
interlocked.c)
if(MSVC AND (NOT MONOLITHIC_BUILD))
set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} module.def)
if (${CMAKE_SYSTEM_VERSION} GREATER "5.1")
set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} module.def)
else()
set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} module_5.1.def)
endif()
endif()
add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"

View File

@ -1,6 +1,7 @@
LIBRARY "libwinpr-interlocked"
EXPORTS
InterlockedCompareExchange64 @1
; Not required on windows > 5.1
; InterlockedCompareExchange64 @1
InitializeListHead @2
IsListEmpty @3
RemoveEntryList @4

View File

@ -0,0 +1,13 @@
LIBRARY "libwinpr-interlocked"
EXPORTS
InterlockedCompareExchange64 @1
InitializeListHead @2
IsListEmpty @3
RemoveEntryList @4
InsertHeadList @5
RemoveHeadList @6
InsertTailList @7
RemoveTailList @8
AppendTailList @9
PushEntryList @10
PopEntryList @11