Skip to content

Commit 5c393fd

Browse files
committed
mingw
1 parent 6c9488a commit 5c393fd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

selfcheck.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ if [ "$cxx_type" = "g++" ] || [ "$cxx_type" = "g++.exe" ]; then
2727
defs="$defs -D__x86_64__"
2828
defs="$defs -D__STDC_HOSTED__"
2929
defs="$defs -D__CHAR_BIT__=8"
30+
if [ "${MSYSTEM}" = "MINGW32" ] || [ "${MSYSTEM}" = "MINGW64" ]; then
31+
defs="$defs -D_WIN32"
32+
fi
3033
defs="$defs -D__has_builtin(x)=(1)"
3134
defs="$defs -D__has_cpp_attribute(x)=(1)"
3235
defs="$defs -D__has_attribute(x)=(1)"
@@ -44,9 +47,6 @@ elif [ "$cxx_type" = "clang" ]; then
4447
defs="$defs -D__STDC_HOSTED__"
4548
defs="$defs -D__CHAR_BIT__=8"
4649
defs="$defs -D__BYTE_ORDER__=1234"
47-
if [ "${MSYSTEM}" = "MINGW32" ] || [ "${MSYSTEM}" = "MINGW64" ]; then
48-
defs="$defs -D_WIN32"
49-
fi
5050
defs="$defs -D__has_builtin(x)=(1)"
5151
defs="$defs -D__has_cpp_attribute(x)=(1)"
5252
defs="$defs -D__has_feature(x)=(1)"

0 commit comments

Comments
 (0)