AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2007.09.12 03:36 "SIZEOF_UNSIGNED_LONG", by Frank Warmerdam
2007.09.12 12:59 "Re: SIZEOF_UNSIGNED_LONG", by Edward Lam
2007.09.12 13:04 "Re: SIZEOF_UNSIGNED_LONG", by Edward Lam
2007.09.12 13:56 "Re: SIZEOF_UNSIGNED_LONG", by Frank Warmerdam
2007.09.12 14:09 "Re: SIZEOF_UNSIGNED_LONG", by Edward Lam
2007.09.12 15:01 "Re: SIZEOF_UNSIGNED_LONG", by Frank Warmerdam
2007.09.12 15:09 "Re: SIZEOF_UNSIGNED_LONG", by Edward Lam
2007.09.12 15:02 "Re: SIZEOF_UNSIGNED_LONG", by Bob Friesenhahn

2007.09.12 13:04 "Re: SIZEOF_UNSIGNED_LONG", by Edward Lam

Ooops, sorry, I didn't mean to send that. Here's what I really meant to 
comment on.

> I wonder if we should either:
>  o Require that SIZEOF_UNSIGNED_LONG be explicitly 8 or 4, and if it is not
>    defined we #error to stop the build.

What about just erroring if it's not defined? ie.

#ifndef SIZEOF_UNSIGNED_LONG
   #error SIZEOF_UNSIGED_LONG needs to be defined
#endif


-Edward

Edward Lam wrote:
> Frank Warmerdam wrote:
>> libtiff now (I'm not clear on how recent this is) checks
>> SIZEOF_UNSIGNED_LONG in tif_fax3.c and has an alternate form
>> of the FILL() macro for 64bit systems.  This introduced a bug in
>> GDAL which didn't declare the SIZEOF_UNSIGNED_LONG macro when doing
>> "libtiff internal" builds on 64bit systems.
> 
> Er, what happened to the SIZEOF_LONG macro? I'm still using 3.7.0 though.
> 
> -Edward
>