Debian Codegraph @

headers/cstddef

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_CSTDDEF_H
17 #define CPPREFERENCE_CSTDDEF_H
18
19 namespace std {
20
21 #ifndef offsetof
22 #define offsetof(type,member_designator) 0 // SIMPLIFIED
23 #endif
24 #ifndef NULL
25 #define NULL
26 #endif
27
28 namespace std {
29 // dummy impl
30 typedef long long ptrdiff_t;
31 typedef long long size_t;
32 typedef long long max_align_t;
33 typedef void* nullptr_t;
34 } // namespace std
35
36 #endif // CPPREFERENCE_CSTDDEF_H