AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2020.01.18 13:19 "[Tiff] Warnings while building tools", by Miguel Medalha
2020.01.18 16:03 "Re: [Tiff] Warnings while building tools", by Greg Troxel
2020.01.18 16:34 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.18 19:45 "Re: [Tiff] Warnings while building tools", by Greg Troxel
2020.01.18 21:24 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.18 21:27 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.18 21:32 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.18 22:29 "Re: [Tiff] Warnings while building tools", by Roger Leigh
2020.01.19 02:05 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.19 11:51 "Re: [Tiff] Warnings while building tools", by Even Rouault
2020.01.19 15:13 "Re: [Tiff] Warnings while building tools", by Greg Troxel
2020.01.19 15:54 "Re: [Tiff] Warnings while building tools", by ZdPo Ster
2020.01.19 16:53 "Re: [Tiff] Warnings while building tools", by Roger Leigh
2020.01.19 19:41 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.21 19:23 "Re: [Tiff] Warnings while building tools", by Su
2020.01.21 20:03 "Re: [Tiff] Warnings while building tools", by Roger Leigh
2020.01.22 03:07 "Re: [Tiff] Warnings while building tools", by Edward Lam
2020.01.22 14:41 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.22 20:50 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.22 21:16 "Re: [Tiff] Warnings while building tools", by Su
2020.01.22 22:56 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.23 13:01 "Re: [Tiff] Warnings while building tools", by Even Rouault
2020.01.25 20:10 "Re: [Tiff] Warnings while building tools", by Su
2020.01.23 13:05 "Re: [Tiff] Warnings while building tools", by Su
2020.01.25 16:22 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.25 20:24 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.26 16:37 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.26 16:39 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.26 17:34 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.26 23:57 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.27 00:53 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.27 01:24 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.27 13:04 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.22 12:25 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.22 16:47 "Re: [Tiff] Warnings while building tools", by Greg Troxel
2020.01.22 19:13 "Re: [Tiff] Warnings while building tools", by Christoph Gohlke
2020.01.22 20:12 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.23 03:44 "Re: [Tiff] Warnings while building tools", by Edward Lam
2020.01.29 14:14 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.29 14:31 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.19 17:32 "Re: [Tiff] Warnings while building tools", by Miguel Medalha

2020.01.25 16:22 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn

I am working on fixing up the nmake build. Fixing it is pretty easy, but I have run across something I do not understand. I am confused in that that libport.h seems to use inverted logic for exposing the prototypes for missing strlto* functions:

#if HAVE_STRTOL
long strtol(const char *nptr, char **endptr, int base);
#endif
#if HAVE_STRTOLL
long long strtoll(const char *nptr, char **endptr, int base);
#endif
#if HAVE_STRTOUL
unsigned long strtoul(const char *nptr, char **endptr, int base);
#endif
#if HAVE_STRTOULL
unsigned long long strtoull(const char *nptr, char **endptr, int
base);
#endif

It seems like a HAVE_STRTO* definition should indicate that the system/compiler has this function available so it should not be necessary to provide a prototype or offer a port build for it. Thus I would expect prototype logic like '#if !HAVE_STRTOL'. Looking at CMakeLists.txt the conditional logic which adds source files is as I would expect.

Are you able to explain why the function prototype logic is inverted?

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/

Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt