4 Jan
2009
4 Jan
'09
5:22 p.m.
"Rob Shearman" <robertshearman(a)gmail.com> writes:
2009/1/4 Michael Stefaniuc <mstefani(a)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(a)winehq.org