[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cmocka under x86-64-w64-mingw32


On (05/08/15 07:32), Dejan Črnila wrote:
>__WORDSIZE is 64, but sizeof(unsigned long int) is 4 to be compatible with
>Windows ABI.
>
>http://stackoverflow.com/questions/7607502/sizeoflong-in-64-bit-c
>
OK.

Then you can solve it with another #if #else

#if defined(SOME_MINGW_MACRO) && __WORDSIZE == 64
  define LargestIntegralType unsigned long long int
...
//rest should be the same

LS


Follow-Ups:
Re: cmocka under x86-64-w64-mingw32Dejan Črnila <dejan.crnila@xxxxxxxxxxxx>
References:
cmocka under x86-64-w64-mingw32Dejan Črnila <dejan.crnila@xxxxxxxxxxxx>
Re: cmocka under x86-64-w64-mingw32Lukas Slebodnik <lslebodn@xxxxxxxxxx>
Re: cmocka under x86-64-w64-mingw32Dejan Črnila <dejan.crnila@xxxxxxxxxxxx>