-
-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathstddef.h
More file actions
20 lines (15 loc) · 631 Bytes
/
stddef.h
File metadata and controls
20 lines (15 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _STDDEF_H
#define _STDDEF_H
#include <cdefs.h>
#define offsetof(type, member) __builtin_offsetof(type, member)
typedef __PTRDIFF_TYPE__ ptrdiff_t;
#if __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L
typedef struct {
long long __max_align_ll __attribute__((__aligned__(__alignof__( long long))));
long double __max_align_ld __attribute__((__aligned__(__alignof__(long double))));
#ifdef __FLOAT128__
__float128 __max_align_f128 __attribute__((__aligned__(__alignof__( __float128))));
#endif
} max_align_t;
#endif /* __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L */
#endif /* _STDDEF_H */