diff --git a/druntime/test/importc_compare/Makefile b/druntime/test/importc_compare/Makefile index 47af3d8115..957ac9f212 100644 --- a/druntime/test/importc_compare/Makefile +++ b/druntime/test/importc_compare/Makefile @@ -11,3 +11,7 @@ endif include ../common.mak extra_dflags += -d + +ifeq ($(OS),windows) + extra_dflags += -P=/std:c11 +endif diff --git a/druntime/test/importc_compare/src/importc_includes.c b/druntime/test/importc_compare/src/importc_includes.c index 421ad42e46..a385743bca 100644 --- a/druntime/test/importc_compare/src/importc_includes.c +++ b/druntime/test/importc_compare/src/importc_includes.c @@ -93,7 +93,7 @@ #if __has_include() #include #endif -#if __has_include() +#if __has_include() && !defined(__STDC_NO_ATOMICS__) #include #endif #if __has_include()