diff --git a/druntime/src/core/stdc/stdint.d b/druntime/src/core/stdc/stdint.d index 1776269378f8..09a291b8bfb0 100644 --- a/druntime/src/core/stdc/stdint.d +++ b/druntime/src/core/stdc/stdint.d @@ -15,9 +15,7 @@ module core.stdc.stdint; import core.stdc.config; -import core.stdc.stddef; // for wchar_t import core.stdc.signal; // for sig_atomic_t -import core.stdc.wchar_; // for wint_t version (OSX) version = Darwin; @@ -406,10 +404,13 @@ else version (WASI) } else { - static assert(false, "Unsupported architecture."); + version = UnsupportedByStdint; } +version (UnsupportedByStdint) {} +else: +import core.stdc.wchar_ : wchar_t, wint_t; /// enum int8_t INT8_MIN = int8_t.min;