Re: GLib and 64-bit Windows





Morten Welinder wrote:
">=", I think, but yes.  You need to make sure configure defines gsize
as unsigned
long long, and gssize as long long.

Well, gsize is actually fine. There is a "native" size_t type that is 8 bytes. long is the issue here, as it is only 4 bytes. long long is 8 bytes, as you suggested.

You might also want to check...

* the ptrdiff_t type.  If it has a different size that size_t, there
might be a bit of  fun hidden there too.

Thankfully, this is fine. sizeof(ptrdiff_t) == 8.

* if NULL is an integer type.  No, really.  If it is defined as just
"0" or "0L", you are in for a world of hurt. It should be simplest to override the definition in that case.
I'm not even sure where or how I could check for this. Any clues?

Thanks for the tips!

-Jake



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