diff --git a/src/mono/wasm/wasm.proj b/src/mono/wasm/wasm.proj
index 7bbbf4073a2728..512ec272cf135f 100644
--- a/src/mono/wasm/wasm.proj
+++ b/src/mono/wasm/wasm.proj
@@ -84,7 +84,6 @@
<_EmccFlags Include="@(_EmccCommonFlags)" />
- <_EmccFlags Include="-s USE_ZLIB=1" />
#include "pal_zlib.h"
-#ifdef _WIN32
- #define c_static_assert(e) static_assert((e),"")
+#ifdef INTERNAL_ZLIB
+ #ifdef _WIN32
+ #define c_static_assert(e) static_assert((e),"")
+ #endif
#include
#else
#include "pal_utilities.h"