Deleted Added
full compact
stddef.h (218893) stddef.h (221345)
1/*===---- stddef.h - Basic type definitions --------------------------------===
2 *
3 * Copyright (c) 2008 Eli Friedman
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

--- 12 unchanged lines hidden (view full) ---

21 * THE SOFTWARE.
22 *
23 *===-----------------------------------------------------------------------===
24 */
25
26#ifndef __STDDEF_H
27#define __STDDEF_H
28
1/*===---- stddef.h - Basic type definitions --------------------------------===
2 *
3 * Copyright (c) 2008 Eli Friedman
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

--- 12 unchanged lines hidden (view full) ---

21 * THE SOFTWARE.
22 *
23 *===-----------------------------------------------------------------------===
24 */
25
26#ifndef __STDDEF_H
27#define __STDDEF_H
28
29#ifndef _PTRDIFF_T
30#define _PTRDIFF_T
29typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;
31typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;
32#endif
30#ifndef _SIZE_T
31#define _SIZE_T
32typedef __typeof__(sizeof(int)) size_t;
33#endif
34#ifndef __cplusplus
35#ifndef _WCHAR_T
36#define _WCHAR_T
37typedef __WCHAR_TYPE__ wchar_t;

--- 8 unchanged lines hidden (view full) ---

46#define NULL ((void*)0)
47#endif
48
49#define offsetof(t, d) __builtin_offsetof(t, d)
50
51#endif /* __STDDEF_H */
52
53/* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use
33#ifndef _SIZE_T
34#define _SIZE_T
35typedef __typeof__(sizeof(int)) size_t;
36#endif
37#ifndef __cplusplus
38#ifndef _WCHAR_T
39#define _WCHAR_T
40typedef __WCHAR_TYPE__ wchar_t;

--- 8 unchanged lines hidden (view full) ---

49#define NULL ((void*)0)
50#endif
51
52#define offsetof(t, d) __builtin_offsetof(t, d)
53
54#endif /* __STDDEF_H */
55
56/* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use
54__WINT_TYPE__ directly; accomodate both by requiring __need_wint_t */
57__WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */
55#if defined(__need_wint_t)
56#if !defined(_WINT_T)
57#define _WINT_T
58typedef __WINT_TYPE__ wint_t;
59#endif /* _WINT_T */
60#undef __need_wint_t
61#endif /* __need_wint_t */
58#if defined(__need_wint_t)
59#if !defined(_WINT_T)
60#define _WINT_T
61typedef __WINT_TYPE__ wint_t;
62#endif /* _WINT_T */
63#undef __need_wint_t
64#endif /* __need_wint_t */