What SDK are you using? The closest I could find in the current SDK to what you cite
is the following:
typedef enum WinDirectionTag
{
winUp = 0,
winDown,
winLeft,
winRight
} WinDirectionType;
Before Palm OS 3.5, the above appeared as follows:
enum directions { up = 0, down, left, right };
typedef enum directions DirectionType;
-- Keith
P.S. With regards to using "-pedantic", note that the gcc man page says "There is no
reason to use this option; it exists only to satisfy pedants." :-)
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Gregg
> Woodcock
> Sent: Tuesday, November 25, 2003 12:09 PM
> To: Palm Developer Forum
> Subject: Palm SDK header files fail gcc -pedantic!?!
>
>
> I cannot run gcc compile with "-pedantic" as the Palm SDK are
> non-compliant
> with strict ANSI C standards. The big offender is non-int
> enums declared
> like this:
> typdef enum { UP, DOWN, LEFT, RIGHT } DirectionType;
> instead of like this:
> typdef enum { UP = (int)0, DOWN, LEFT, RIGHT } Direction Type;
> so as to explicitly confirm to ANSI standard of enums as "int".
>
> I know this would violate the recent Palm "Int16" types if
> they did but
> isn't there some way the headers could be made pedantic for ANSI?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/