Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Side by Side Diff: fusl/include/stddef.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/include/stdbool.h ('k') | fusl/include/stdint.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef _STDDEF_H
2 #define _STDDEF_H
3
4 #ifdef __cplusplus
5 #define NULL 0L
6 #else
7 #define NULL ((void*)0)
8 #endif
9
10 #define __NEED_ptrdiff_t
11 #define __NEED_size_t
12 #define __NEED_wchar_t
13 #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
14 #define __NEED_max_align_t
15 #endif
16
17 #include <bits/alltypes.h>
18
19 #if __GNUC__ > 3
20 #define offsetof(type, member) __builtin_offsetof(type, member)
21 #else
22 #define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 ))
23 #endif
24
25 #endif
OLDNEW
« no previous file with comments | « fusl/include/stdbool.h ('k') | fusl/include/stdint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698