summaryrefslogtreecommitdiff
path: root/libphobos/libdruntime/core/stdc/stdint.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/libdruntime/core/stdc/stdint.d')
-rw-r--r--libphobos/libdruntime/core/stdc/stdint.d19
1 files changed, 18 insertions, 1 deletions
diff --git a/libphobos/libdruntime/core/stdc/stdint.d b/libphobos/libdruntime/core/stdc/stdint.d
index b04283174c1..0e310521e0e 100644
--- a/libphobos/libdruntime/core/stdc/stdint.d
+++ b/libphobos/libdruntime/core/stdc/stdint.d
@@ -19,6 +19,14 @@ private import core.stdc.stddef; // for wchar_t
private import core.stdc.signal; // for sig_atomic_t
private import core.stdc.wchar_; // for wint_t
+version (OSX)
+ version = Darwin;
+else version (iOS)
+ version = Darwin;
+else version (TVOS)
+ version = Darwin;
+else version (WatchOS)
+ version = Darwin;
// Can't be `private` because of @@@BUG11173@@@.
T _typify(T)(T val) @safe pure nothrow { return val; }
@@ -77,7 +85,7 @@ version (Windows)
alias intmax_t = long; ///
alias uintmax_t = ulong; ///
}
-else version (OSX)
+else version (Darwin)
{
alias int8_t = byte; ///
alias int16_t = short; ///
@@ -140,6 +148,15 @@ else version (Posix)
alias int_fast32_t = int; ///
alias uint_fast32_t = uint; ///
}
+ else version (CRuntime_Musl)
+ {
+ alias int_fast8_t = byte; ///
+ alias uint_fast8_t = ubyte; ///
+ alias int_fast16_t = int; ///
+ alias uint_fast16_t = uint; ///
+ alias int_fast32_t = int; ///
+ alias uint_fast32_t = uint; ///
+ }
else
{
alias int_fast8_t = byte; ///