Return-Path: <tiff-bounces@lists.osgeo.org>
Received: from mailgate221.isp.belgacom.be ([195.238.22.53])
          by mailfep025.skynet.be
          (InterMail vM.8.04.03.28.4 201-2389-100-182-103-20180124)
          with ESMTP
          id <20210111141214.IGIO11322.mailfep025.skynet.be@mailgate221.isp.belgacom.be>
          for <chris.lindelaan@skynet.be>; Mon, 11 Jan 2021 15:12:14 +0100
Authentication-Results: mx201.skynet.be; dkim=none (message not signed) header.i=none; spf=None smtp.pra=tiff-bounces@lists.osgeo.org; spf=Pass smtp.mailfrom=tiff-bounces@lists.osgeo.org; spf=Pass smtp.helo=postmaster@lists.osgeo.org
Received-SPF: None (mx201.skynet.be: no sender authenticity
  information available from domain of
  tiff-bounces@lists.osgeo.org) identity=pra;
  client-ip=140.211.15.3; receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="tiff-bounces@lists.osgeo.org";
  x-conformance=sidf_compatible
Received-SPF: Pass (mx201.skynet.be: domain of
  tiff-bounces@lists.osgeo.org designates 140.211.15.3 as
  permitted sender) identity=mailfrom; client-ip=140.211.15.3;
  receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="tiff-bounces@lists.osgeo.org";
  x-conformance=sidf_compatible; x-record-type="v=spf1";
  x-record-text="v=spf1 mx a:mail.osgeo.org a:lists.osgeo.org
  a:mail.osgeo.osuosl.org a:tracsvn.osgeo.osuosl.org -all"
Received-SPF: Pass (mx201.skynet.be: domain of
  postmaster@lists.osgeo.org designates 140.211.15.3 as
  permitted sender) identity=helo; client-ip=140.211.15.3;
  receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="postmaster@lists.osgeo.org";
  x-conformance=sidf_compatible; x-record-type="v=spf1";
  x-record-text="v=spf1 mx a:mail.osgeo.org a:lists.osgeo.org
  a:mail.osgeo.osuosl.org a:tracsvn.osgeo.osuosl.org -all"
X-Ironport-Dmarc-Check-Result: validskip
IronPort-SDR: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EAXGaepEtL9maBDRkW4dFoWJXjvK?=
 =?us-ascii?q?VZy96Hk6yWSn8K69XP4c4VHNTZMuqDMWE9KlzuAzHZC00CVzHjOWzEhkNbme?=
 =?us-ascii?q?2f7TXM8sB88MG13sNTDOQTXUdQdLtSEkl/Gd0ePJp7Figpl7KWlo9A5Hazqg?=
 =?us-ascii?q?XQWNQPvp3DUaHaCvHuJTCFyLhcMkJUmfWidN1Vb9C9gB8HCBEyhonBFkvOUM?=
 =?us-ascii?q?oYpz07NlZyu0Zc9nViCGc+iCeHIkug5mEeEfmsk1s4kAx7NK4x9Tnipl0wO1?=
 =?us-ascii?q?zBqTAYlEgqhc6jhiuefTm3K72/F9IzaWK8pw0qP5X3ThwgJxW1hlBhPSzYSq?=
 =?us-ascii?q?h5i7p7aXstjxTTtJwJHuRTB/4hAldY1bScYPMm1k5ZoyOsyBpc5OfLPpBlkR?=
 =?us-ascii?q?MjbZ+mq38TkxImdtM+IrbcYbZY1lUFzLzbpTemj6pipW1Wb1ZI6m6ZfzQE/V?=
 =?us-ascii?q?AFJqVzbTT95fRisESHi3NKKm0FVv5spell+0R7PP6Phyuy179YNlv3MPeQIq?=
 =?us-ascii?q?TfvHLP8KzAClpi00oJkw9C5rd71oEkaFeTTERpy6GeXx1bKdDLIhpLaYxV73?=
 =?us-ascii?q?feemCJqvjK2pYzOJ+yXqXhSevE7fdGsgefBA8sWr80wIEEF5io3lvfKJ64fr?=
 =?us-ascii?q?oE0gk2ogPwK1iCSvNTd0DSyWpVk4SE1JZymLJlCHQdDGF6aHrl4rfMuhRsh+?=
 =?us-ascii?q?GMUdBwZW0VDNJdaiAGHfaikischExuSSGt27tGmgyD9CPn4CPLAzT7Kd15a6?=
 =?us-ascii?q?XMaA=3D=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0ETAgBxXPxfhwMP04xiHgEBCxIMQIN?=
 =?us-ascii?q?zGAFkWQEeAwc2iAqFOYg6A4orkg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DOpm7e2ILeecXk8ugcI5JQgNNT2R0j?=
 =?us-ascii?q?bbAeemp1Ktuubk6BirtF1xzTPDXiGuUyADM2s2vR7UduArhkTOZz5gD1?=
 =?us-ascii?q?JNRQU6CZc1OJxAahF9HUUX5JxRUZcif9Qj++s=3D?=
Received: from osgeo6.osgeo.osuosl.org (HELO lists.osgeo.org) ([140.211.15.3])
  by mx201.skynet.be with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 11 Jan 2021 15:12:13 +0100
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id 18826614595C;
	Mon, 11 Jan 2021 06:12:07 -0800 (PST)
Received: from smtp.simplesystems.org (smtp.simplesystems.org [65.66.246.90])
 by lists.osgeo.org (Postfix) with ESMTPS id 75A2C614665D
 for <tiff@lists.osgeo.org>; Mon, 11 Jan 2021 06:12:05 -0800 (PST)
Received: from scrappy.simplesystems.org (scrappy.simplesystems.org
 [65.66.246.73])
 by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id 10BEC383011228;
 Mon, 11 Jan 2021 08:12:03 -0600 (CST)
Date: Mon, 11 Jan 2021 08:12:03 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@scrappy.simplesystems.org
To: William Bader <williambader@hotmail.com>
cc: "tiff@lists.osgeo.org" <tiff@lists.osgeo.org>
In-Reply-To: <DB6PR0201MB2471F143384CB0AE7FC709FBC4AB0@DB6PR0201MB2471.eurprd02.prod.outlook.com>
Message-ID: <alpine.GSO.2.20.2101110805060.17187@scrappy.simplesystems.org>
References: <9052599.rlaer9EI2p@even-i700> <2748399.eaF4TIHlBA@even-i700>
 <alpine.GSO.2.20.2101100826040.17187@scrappy.simplesystems.org>,
 <7569910.L6OmBPVM4l@even-i700>
 <DB6PR0201MB2471F143384CB0AE7FC709FBC4AB0@DB6PR0201MB2471.eurprd02.prod.outlook.com>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (smtp.simplesystems.org [65.66.246.90]); Mon, 11 Jan 2021 08:12:03 -0600 (CST)
Subject: Re: [Tiff] Motions related to C99 use in libtiff
X-BeenThere: tiff@lists.osgeo.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.osgeo.org>
List-Unsubscribe: <https://lists.osgeo.org/mailman/options/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=unsubscribe>
List-Post: <mailto:tiff@lists.osgeo.org>
List-Help: <mailto:tiff-request@lists.osgeo.org?subject=help>
List-Subscribe: <https://lists.osgeo.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: tiff-bounces@lists.osgeo.org
Sender: "Tiff" <tiff-bounces@lists.osgeo.org>

On Mon, 11 Jan 2021, William Bader wrote:
>
> 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
_______________________________________________
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff
