[bug?]swprintf function proto for Win32 and PocketPC

Started by Moonglow, March 15, 2010, 03:32:36 PM

Previous topic - Next topic

Moonglow

Hello,

i make cross platform project with Pellec C 6.00.4 and i have strange thing... with swprintf function...

for win32 proto is

int swprintf(wchar_t * restrict dst, size_t max, const wchar_t * restrict format, ...);

...but for PocketPC compiler give me an error... about second argument... so correct proto was

int swprintf(wchar_t * restrict dst,  const wchar_t * restrict format, ...);


i use preprocessor to solve this problem...  ( different call for win32 and pocketpc ) so.. this is correct situation ? or bug ? microsoft use second variant for win32 and ppc...

Kaljj

Hi Moonglow,

in the headerfile wchar.h is
for window ce defined swprintf(wchar_t *, const wchar_t *, ...);

I hope is helpfull
Kaljj