Deleted Added
full compact
stddef.h (208954) stddef.h (210299)
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

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

40
41#undef NULL
42#ifdef __cplusplus
43#define NULL __null
44#else
45#define NULL ((void*)0)
46#endif
47
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

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

40
41#undef NULL
42#ifdef __cplusplus
43#define NULL __null
44#else
45#define NULL ((void*)0)
46#endif
47
48// Some C libraries expect to see a wint_t here. Others (notably MinGW) will use
49// __WINT_TYPE__ directly; accomodate both by requiring __need_wint_t
50#if defined(__need_wint_t) && !defined(_WINT_T)
51#define _WINT_T
52typedef __WINT_TYPE__ wint_t;
53#endif
54
48#define offsetof(t, d) __builtin_offsetof(t, d)
49
50#endif /* __STDDEF_H */
55#define offsetof(t, d) __builtin_offsetof(t, d)
56
57#endif /* __STDDEF_H */