Skip to content

Commit 35201ba

Browse files
committed
mingw
1 parent 0ea7395 commit 35201ba

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

selfcheck.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ elif [ "$cxx_type" = "clang" ]; then
4343
defs="$defs -D__STDC_HOSTED__"
4444
defs="$defs -D__CHAR_BIT__=8"
4545
defs="$defs -D__BYTE_ORDER__=1234"
46-
defs="$defs -D_WIN32" # TODO: how to make conditional?
46+
if [ "${MSYSTEM}" = "MINGW32" ] || [ "${MSYSTEM}" = "MINGW64" ]; then
47+
defs="$defs -D_WIN32"
48+
fi
4749
defs="$defs -D__has_builtin(x)=(1)"
4850
defs="$defs -D__has_cpp_attribute(x)=(1)"
4951
defs="$defs -D__has_feature(x)=(1)"

0 commit comments

Comments
 (0)