| 1 |
/** |
| 2 |
* D header file for C99. |
| 3 |
* |
| 4 |
* $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_stddef.h.html, _stddef.h) |
| 5 |
* |
| 6 |
* Copyright: Copyright Sean Kelly 2005 - 2009. |
| 7 |
* License: Distributed under the |
| 8 |
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0). |
| 9 |
* (See accompanying file LICENSE) |
| 10 |
* Authors: Sean Kelly |
| 11 |
* Source: $(DRUNTIMESRC core/stdc/_stddef.d) |
| 12 |
* Standards: ISO/IEC 9899:1999 (E) |
| 13 |
*/ |
| 14 |
|
| 15 |
module core.stdc.stddef; |
| 16 |
|
| 17 |
extern (C): |
| 18 |
@trusted: // Types only. |
| 19 |
nothrow: |
| 20 |
@nogc: |
| 21 |
|
| 22 |
/// |
| 23 |
alias nullptr_t = typeof(null); |
| 24 |
|
| 25 |
// size_t and ptrdiff_t are defined in the object module. |
| 26 |
|
| 27 |
version (Windows) |
| 28 |
{ |
| 29 |
/// |
| 30 |
alias wchar wchar_t; |
| 31 |
} |
| 32 |
else version (Posix) |
| 33 |
{ |
| 34 |
/// |
| 35 |
alias dchar wchar_t; |
| 36 |
} |
| 37 |
else version (WASI) |
| 38 |
{ |
| 39 |
/// |
| 40 |
alias dchar wchar_t; |
| 41 |
} |