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

*** 2415,2425 **** return (0); } #ifndef offsetof ! #define offsetof(s, m) ((size_t)(&((s *)0)->m)) #endif /* * re-write the size of the current partition */ --- 2415,2429 ---- return (0); } #ifndef offsetof ! #if defined(__GNUC__) ! #define offsetof(s, m) __builtin_offsetof(s, m) ! #else ! #define offsetof(s, m) ((size_t)(&(((s *)0)->m))) ! #endif #endif /* * re-write the size of the current partition */