More msvcrt scanf tests
Boaz Harrosh
boaz at hishome.net
Tue Feb 24 05:32:52 CST 2004
Alexandre Julliard wrote:
>Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de> writes:
>
>
>
>>+ todo_wine ok(strstr(buffer,"e+008") != 0,"Sprintf different \"%s\"\n",buffer);
>>+ sprintf(buffer,I64x,(ULONGLONG)0xffffffffffffffff);
>>
>>
>
>Long long constants are not portable, you need to compute them from
>long constants.
>
>
>
The official way to do it in GCC (any gcc) is 0x1234567812345678LL Just
like we used to do 0x12345678L in 16 bit
In VC++ it is 0x1234567812345678i64. Intel can do LL as well. Not sure
about borland or watcom. What do OS X use?
I guess you can do:
#ifdef _GCC_
#define i64 LL
#endif
or the opposite way (#define LL i64 )
More information about the wine-devel
mailing list