Skip to content

Commit 577c36c

Browse files
authored
Remove unnecessary _DARWIN_C_SOURCE definition in CMake files, we define it globally (#112141)
We define this globally: https://github.com/dotnet/runtime/blob/d44116e0dc18ffd94b910bd03cdcf2c8219a59bd/eng/native/configurecompiler.cmake#L301-L304
1 parent 9022f3a commit 577c36c

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

src/tests/Exceptions/ForeignThread/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ project (ForeignThreadExceptionsNative)
22

33
include_directories(${INC_PLATFORM_DIR})
44

5-
if(CLR_CMAKE_HOST_OSX)
6-
# Enable non-POSIX pthreads APIs, which by default are not included in the pthreads header
7-
add_definitions(-D_DARWIN_C_SOURCE)
8-
endif(CLR_CMAKE_HOST_OSX)
9-
105
set(SOURCES ForeignThreadExceptionsNative.cpp)
116

127
if(NOT CLR_CMAKE_HOST_WIN32)

src/tests/baseservices/exceptions/UnhandledExceptionHandler/ForeignThreadRevPInvokeUnhandled/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ project (ForeignThreadRevPInvokeUnhandledNative)
22

33
include_directories(${INC_PLATFORM_DIR})
44

5-
if(CLR_CMAKE_HOST_OSX)
6-
# Enable non-POSIX pthreads APIs, which by default are not included in the pthreads header
7-
add_definitions(-D_DARWIN_C_SOURCE)
8-
endif(CLR_CMAKE_HOST_OSX)
9-
105
set(SOURCES ForeignThreadRevPInvokeUnhandledNative.cpp)
116

127
if(NOT CLR_CMAKE_HOST_WIN32)

src/tests/baseservices/exceptions/UnhandledExceptionHandler/PInvokeRevPInvokeUnhandled/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ project (PInvokeRevPInvokeUnhandledNative)
22

33
include_directories(${INC_PLATFORM_DIR})
44

5-
if(CLR_CMAKE_HOST_OSX)
6-
# Enable non-POSIX pthreads APIs, which by default are not included in the pthreads header
7-
add_definitions(-D_DARWIN_C_SOURCE)
8-
endif(CLR_CMAKE_HOST_OSX)
9-
105
set(SOURCES PInvokeRevPInvokeUnhandledNative.cpp)
116

127
if(NOT CLR_CMAKE_HOST_WIN32)

src/tests/baseservices/exceptions/unhandled/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ project (foreignunhandled)
22

33
include_directories(${INC_PLATFORM_DIR})
44

5-
if(CLR_CMAKE_HOST_OSX)
6-
# Enable non-POSIX pthreads APIs, which by default are not included in the pthreads header
7-
add_definitions(-D_DARWIN_C_SOURCE)
8-
endif(CLR_CMAKE_HOST_OSX)
9-
105
set(SOURCES foreignunhandled.cpp)
116

127
if(NOT CLR_CMAKE_HOST_WIN32)

0 commit comments

Comments
 (0)