|
From: Casper H. <ch...@us...> - 2002-05-13 17:32:41
|
man, 2002-05-13 kl. 17:49 skrev Steven Edwards: > I am having a little problem with my wine porting work and was wondering > if you guys could help with the solution. For the port of comdlg32 I > have 1 error that must be fixed. > > Wine/include/ntddk.h defines > INT __cdecl wcstol(LPCWSTR,LPWSTR*,INT); > Which is a ntdll function. > > > While mingws include/stdlib.h defines > long wcstol (const wchar_t*, wchar_t**, int); > Is based on msvcrt. > > Any idea on how to fix it to use wines prototype or have another > solution? I have at least 2 other cases I know about where the protoype > is wrong. > > Thanks > Steven Since this is a standard C runtime library function, I consider the MinGW to be more correct. LPCWSTR etc. are WinNT types, not stdc types. Does the WINE team have a problem with changing their stdc prototypes? |