Skip to content

Commit 1c74a6c

Browse files
authored
Merge pull request #1234 from jsberg-bnl/250929-no-strict-ansi
Changes to build on up-to-date msys2
2 parents 728c5c0 + 1c5a24a commit 1c74a6c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cmake/compilers/setupGNU.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,4 @@ if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
4242
endif()
4343
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
4444
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98")
45-
if(WIN32)
46-
# MinGW automatically adds -ansi, so c++ code does not compile without this flag as well..
47-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U__STRICT_ANSI__")
48-
endif()
4945
endif()

src/mad_port.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifdef __MINGW32__
1010
// problem with unistd compliance on Cygwin
1111
typedef long long off64_t;
12+
// For Windows _mkdir
13+
#include <direct.h>
1214
#endif
1315

1416
#ifdef _WIN32

0 commit comments

Comments
 (0)