Print this page
3373 gcc >= 4.5 concerns about offsetof()

*** 328,338 **** --- 328,342 ---- #define USB_AS_PLUMBED 1 #define USB_AH_PLUMBED 2 #define UNKNOWN_PLUMBED 3 /* other useful macros */ + #if defined(__GNUC__) + #define offsetof(s, m) __builtin_offsetof(s, m) + #else #define offsetof(s, m) ((size_t)(&(((s *)0)->m))) + #endif