GDI+: headers and one test

Chris Robinson chris.kcat at
Thu May 31 13:21:13 CDT 2007

On Thursday 31 May 2007 06:59:09 am Francois Gouget wrote:
> --- /dev/null
> +++ b/include/GdiplusTypes.h
> [...]
> +typedef enum {
> [...]
> +} Status;
> Hmm, this is not the same as the PSDK. The PSDK only defines 'enum
> Status { ... }' which, in theory, should only allow one to use 'enum
> Status' and not 'Status'. Yet the PSDK headers seem to make use of
> 'Status'. This might be different in C++ though...
> So on the whole it's probably ok to use a typedef. I just prefer to
> bring this up so others can chime in.

C++ auto-typedefs structs/classes, enums, and the like.
enum Status { };
in C++ would be equivilant to:
typedef enum Status { } Status;
in C. And yes, both the enum and typedef can have the same name.. the compiler 
is smart enough to tell the difference between 'enum Status' and 'Status' 
being used as types. Both can be used interchangeabley, too.

More information about the wine-devel mailing list