Skip to content

Commit b7138ce

Browse files
jeroenajdavis
authored andcommitted
remove _CRT_RAND_S macro from cmake
1 parent a058588 commit b7138ce

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,6 @@ endif ()
250250
include(CheckIncludeFiles)
251251
CHECK_INCLUDE_FILES(strings.h HAVE_STRINGS_H)
252252

253-
if (MINGW)
254-
# Define _CRT_RAND_S, so that MinGW's stdlib.h declares Microsoft's rand_s().
255-
message (" MinGW: define _CRT_RAND_S")
256-
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_RAND_S")
257-
endif ()
258-
259253
include(CheckTypeSize)
260254
if (WIN32)
261255
SET(CMAKE_EXTRA_INCLUDE_FILES "ws2tcpip.h")

0 commit comments

Comments
 (0)