Changeset 3738 for branches


Ignore:
Timestamp:
Oct 3, 2011, 2:18:32 AM (14 years ago)
Author:
bird
Message:

sys/cdefs.h: Our gcc 3.3.5 doesn't seem to grok offsetof.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/include/sys/cdefs.h

    r3737 r3738  
    330330#define __offsetof(type, field)  __builtin_offsetof(type, field)
    331331#else
    332 #if !defined(__cplusplus) || !__GNUC_PREREQ(3,4) /* bird: __offsetof__ was introduced in 3.4.x.  */
     332#if !defined(__cplusplus) || !__GNUC_PREREQ__(3,4) /* bird: __offsetof__ was introduced in 3.4.x.  */
    333333#define __offsetof(type, field) ((size_t)(&((type *)0)->field))
    334334#else
Note: See TracChangeset for help on using the changeset viewer.