From: SourceForge.net <no...@so...> - 2004-12-10 14:55:55
|
Bugs item #1082958, was opened at 2004-12-10 14:55 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1082958&group_id=2435 Category: w32api Group: None Status: Open Resolution: None Priority: 5 Submitted By: Martin Pollard (xmp) Assigned to: Nobody/Anonymous (nobody) Summary: gcc 3.4 and FIELD_OFFSET Initial Comment: I have been using some code that makes use of the following define from winnt.h #define FIELD_OFFSET(t,f) ((LONG)&(((t*)0)->f)) Unfortunately this doesn't seem to be a valid constant expression in the new c++ parser in 3.4? And I get errors when I try and make use of it in case statements. Could we make use of the offsetof macro in stddef.h to fix this? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1082958&group_id=2435 |