long in IDL files?

Alexandre Julliard julliard at winehq.org
Sun Jan 4 11:22:41 CST 2009


"Rob Shearman" <robertshearman at gmail.com> writes:

> 2009/1/4 Michael Stefaniuc <mstefani at redhat.com>:
>> Hello guys,
>>
>> i guess that we need to change long to LONG in IDL files too, right?
>> Or would that be something that widl could/should do automatically?
>
> long/unsigned long are explicitly defined by the DCE/RPC standard to
> be 32-bit types. In an ideal world, I would change widl to generate
> int16_t/uint16_t for short/unsigned short, int32_t/uint32_t for
> long/unsigned long and int64_t/uint64_t for hyper/unsigned hyper
> types, but the lack of stdint.h in the Windows world prevents this.

You could probably use the explicitly-sized types from basetsd.h
instead, it should be included from all generated files.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list