Skip to content

Commit 8062230

Browse files
committed
CMake: use _WINDLL rather than _USRDLL
`_USRDLL` is used to indicate that you are building a MFC DLL while `_WINDLL` is specified for **ALL** DLL builds. Use the correct macro.
1 parent f820c6e commit 8062230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ function(add_swift_target_library name)
17741774
# building both simultaneously. Effectively, only shared builds are
17751775
# supported on windows currently.
17761776
if(SWIFTLIB_SHARED)
1777-
list(APPEND swiftlib_swift_compile_flags_all -D_USRDLL)
1777+
list(APPEND swiftlib_swift_compile_flags_all -D_WINDLL)
17781778
if(SWIFTLIB_IS_STDLIB_CORE)
17791779
list(APPEND swiftlib_swift_compile_flags_all -DswiftCore_EXPORTS)
17801780
endif()

0 commit comments

Comments
 (0)