- 2021.01.04 14:55 "Re: [Tiff] Motions related to C99 use in libtiff", by Edward Lam
- 2021.01.04 18:43 "Re: [Tiff] Motions related to C99 use in libtiff", by Greg Troxel
- 2021.01.05 17:01 "Re: [Tiff] Motions related to C99 use in libtiff", by Jeff Breidenbach
- 2021.01.05 20:29 "Re: [Tiff] Motions related to C99 use in libtiff", by Kurt Schwehr
- 2021.01.05 20:46 "Re: [Tiff] Motions related to C99 use in libtiff", by Kemp Watson
-
2021.01.06 04:45 "Re: [Tiff] Motions related to C99 use in libtiff", by William Bader
- 2021.01.06 10:40 "Re: [Tiff] Motions related to C99 use in libtiff", by Even Rouault
- 2021.01.06 14:15 "Re: [Tiff] Motions related to C99 use in libtiff", by Bob Friesenhahn
-
2021.01.10 12:12 "Re: [Tiff] Motions related to C99 use in libtiff", by Even Rouault
- 2021.01.10 14:54 "Re: [Tiff] Motions related to C99 use in libtiff", by Bob Friesenhahn
- 2021.01.10 16:27 "Re: [Tiff] Motions related to C99 use in libtiff", by Roger Leigh
- 2021.01.15 15:58 "Re: [Tiff] Motions related to C99 use in libtiff", by Even Rouault
2021.01.11 14:12 "Re: [Tiff] Motions related to C99 use in libtiff", by Bob Friesenhahn
Could TIFF_LEGACY_TYPES be 0 or 1 instead of just defined/not defined so tiffio.h could temporarily
#ifndef TIFF_LEGACY_TYPES
#if defined(_STDINT_H) || (__STDC_VERSION__ >= 199901L)
#define TIFF_LEGACY_TYPES 0
#else
#define TIFF_LEGACY_TYPES 1
As some clarification, __STDC_VERSION__ does not provide any clear indication if stdint.h is available because __STDC_VERSION__ is defined by the compiler, but in most Unix-type environments (e.g. "Linux") these header files are provided by the operating system and not by the compiler. For example, GCC and Clang do not provide these header files. Visual Studio, MinGW, and Cygwin, provide such headers for Microsoft Windows because the operating system does not provide header files.
Also, one can not depend on the mechanics employed by the conditional code for some particular OS.
Regardless, your idea to use #include <tiffvers.h> first is a good one, but it is not something that existing source code normally does because it is not a documented header file and there was no need to do this before
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