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:
parent
5360f59940
commit
30de5b226d
@ -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"
|
||||
|
@ -1,6 +1,7 @@
|
||||
LIBRARY "libwinpr-interlocked"
|
||||
EXPORTS
|
||||
InterlockedCompareExchange64 @1
|
||||
; Not required on windows > 5.1
|
||||
; InterlockedCompareExchange64 @1
|
||||
InitializeListHead @2
|
||||
IsListEmpty @3
|
||||
RemoveEntryList @4
|
||||
|
13
winpr/libwinpr/interlocked/module_5.1.def
Normal file
13
winpr/libwinpr/interlocked/module_5.1.def
Normal 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
|
Loading…
Reference in New Issue
Block a user