windows build: use different .def file for xp
Use different def file for windows < 5.1.
This commit is contained in:
parent
23f33ca20e
commit
57d295441f
@ -22,7 +22,11 @@ set(${MODULE_PREFIX}_SRCS
|
|||||||
interlocked.c)
|
interlocked.c)
|
||||||
|
|
||||||
if(MSVC AND (NOT MONOLITHIC_BUILD))
|
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()
|
endif()
|
||||||
|
|
||||||
add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
|
add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
LIBRARY "libwinpr-interlocked"
|
LIBRARY "libwinpr-interlocked"
|
||||||
EXPORTS
|
EXPORTS
|
||||||
InterlockedCompareExchange64 @1
|
; Not required on windows > 5.1
|
||||||
|
; InterlockedCompareExchange64 @1
|
||||||
InitializeListHead @2
|
InitializeListHead @2
|
||||||
IsListEmpty @3
|
IsListEmpty @3
|
||||||
RemoveEntryList @4
|
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