Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 3431329

Browse files
committed
core.stdc.stdint: Fix [u]int_fast{8,16,32}_t aliases for FreeBSD
1 parent d36e2d2 commit 3431329

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

src/core/stdc/stdint.d

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,24 @@ else version (Posix)
131131
alias int_least64_t = long; ///
132132
alias uint_least64_t = ulong; ///
133133

134-
alias int_fast8_t = byte; ///
135-
alias uint_fast8_t = ubyte; ///
136-
alias int_fast16_t = ptrdiff_t; ///
137-
alias uint_fast16_t = size_t; ///
138-
alias int_fast32_t = ptrdiff_t; ///
139-
alias uint_fast32_t = size_t; ///
134+
version (FreeBSD)
135+
{
136+
alias int_fast8_t = int; ///
137+
alias uint_fast8_t = uint; ///
138+
alias int_fast16_t = int; ///
139+
alias uint_fast16_t = uint; ///
140+
alias int_fast32_t = int; ///
141+
alias uint_fast32_t = uint; ///
142+
}
143+
else
144+
{
145+
alias int_fast8_t = byte; ///
146+
alias uint_fast8_t = ubyte; ///
147+
alias int_fast16_t = ptrdiff_t; ///
148+
alias uint_fast16_t = size_t; ///
149+
alias int_fast32_t = ptrdiff_t; ///
150+
alias uint_fast32_t = size_t; ///
151+
}
140152
alias int_fast64_t = long; ///
141153
alias uint_fast64_t = ulong; ///
142154

0 commit comments

Comments
 (0)