We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ea7395 commit 35201baCopy full SHA for 35201ba
1 file changed
selfcheck.sh
@@ -43,7 +43,9 @@ elif [ "$cxx_type" = "clang" ]; then
43
defs="$defs -D__STDC_HOSTED__"
44
defs="$defs -D__CHAR_BIT__=8"
45
defs="$defs -D__BYTE_ORDER__=1234"
46
- defs="$defs -D_WIN32" # TODO: how to make conditional?
+ if [ "${MSYSTEM}" = "MINGW32" ] || [ "${MSYSTEM}" = "MINGW64" ]; then
47
+ defs="$defs -D_WIN32"
48
+ fi
49
defs="$defs -D__has_builtin(x)=(1)"
50
defs="$defs -D__has_cpp_attribute(x)=(1)"
51
defs="$defs -D__has_feature(x)=(1)"
0 commit comments