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

Re: cmocka under x86-64-w64-mingw32


ok it should be

#if defined(__MINGW64__) && __WORDSIZE == 64
  define LargestIntegralType unsigned long long int


could someone commit this to source ?

On Wed, Aug 5, 2015 at 7:45 AM, Lukas Slebodnik <lslebodn@xxxxxxxxxx> wrote:

> 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
>



-- 
Dejan Crnila,
Software engineer,
Dewesoft d.o.o.

Follow-Ups:
Re: cmocka under x86-64-w64-mingw32Lukas Slebodnik <lslebodn@xxxxxxxxxx>
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>
Re: cmocka under x86-64-w64-mingw32Lukas Slebodnik <lslebodn@xxxxxxxxxx>