Changeset 3737
- Timestamp:
- Oct 3, 2011, 2:11:56 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/include/sys/cdefs.h
r3718 r3737 6 6 * @changed bird: Check if stuff is defined before accessing it in #if. Stops -Wundef 7 7 * from bitching. 8 * @changed bird: __offsetof__ was apparently introduced in gcc 3.4.x. 8 9 */ 9 10 … … 329 330 #define __offsetof(type, field) __builtin_offsetof(type, field) 330 331 #else 331 #if ndef __cplusplus332 #if !defined(__cplusplus) || !__GNUC_PREREQ(3,4) /* bird: __offsetof__ was introduced in 3.4.x. */ 332 333 #define __offsetof(type, field) ((size_t)(&((type *)0)->field)) 333 334 #else
Note:
See TracChangeset
for help on using the changeset viewer.