Skip to content

Commit

Permalink
core.stdc.stdint able to work without stddef, wchar_, time and stdio …
Browse files Browse the repository at this point in the history
…modules
  • Loading branch information
denizzzka committed Jul 2, 2024
1 parent 4e5e6f6 commit 8005ce8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions druntime/src/core/stdc/stdint.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8005ce8

Please sign in to comment.