Received: from mail.sidefx.com (mail.sidefx.com [206.223.178.163])
	by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id u49HoHmL025850
	for <bfriesen@simple.dallas.tx.us>; Mon, 9 May 2016 12:50:18 -0500 (CDT)
Subject: Re: [Tiff] snprintf and MSVC 2015
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sidefx.com; s=mail;
	t=1462816216; bh=yIM22LWfWwVhOrA0gH7A6iGpbbooj0Y/jOa57GqpT5w=;
	h=To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	b=YPnT3j6BR5tWxXtBeolYczJ5Mj7gsXPooH28nNyqbzDZLGGZwAU2+7gWJHKVS06Ak
	 PQq7PsjQZePUJs49uuNQpuHucR8hSa6z/2iKz1vJ3Ra+vwZfY8hawKXOiUKW9sq3j7
	 cioLfcICR3MNBzS7Xwofdu5rPw/SWqaKqd7C/n0o=
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
References: <1f558d54-6b57-fb07-835a-a694cfe34752@illinois.edu>
 <958e4ccb-e8b2-5a29-7d07-e0defd9850fe@gatewaygeomatics.com>
 <eaa3b793-4381-69b5-3522-8d97db9cc502@sidefx.com>
 <alpine.GSO.2.20.1605091041160.27960@freddy.simplesystems.org>
Cc: tiff@lists.maptools.org
From: Edward Lam <edward@sidefx.com>
Message-ID: <23643b16-606d-f9d0-7acc-a2184fb318a6@sidefx.com>
Date: Mon, 9 May 2016 13:50:16 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.0
MIME-Version: 1.0
In-Reply-To: <alpine.GSO.2.20.1605091041160.27960@freddy.simplesystems.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.5.16 (smtp.simplesystems.org [65.66.246.90]); Mon, 09 May 2016 12:50:18 -0500 (CDT)
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4
Status: RO
X-Status: A
X-Keywords:                
X-UID: 15

On 09/05/2016 11:42 AM, Bob Friesenhahn wrote:
> A proper patch suitable for inclusion in libtiff CVS (now that it is back) would
> be appreciated.

Here you go:

$ cvs diff -u tif_config.vc.h
Index: tif_config.vc.h
===================================================================
RCS file: /cvs/maptools/cvsroot/libtiff/libtiff/tif_config.vc.h,v
retrieving revision 1.8
diff -u -r1.8 tif_config.vc.h
--- tif_config.vc.h     21 Jun 2015 17:02:12 -0000      1.8
+++ tif_config.vc.h     9 May 2016 17:49:32 -0000
@@ -107,6 +107,8 @@
  /* Visual Studio 2015 / VC 14 / MSVC 19.00 finally has snprintf() */
  #if defined(_MSC_VER) && _MSC_VER < 1900
  #define snprintf _snprintf
+#else
+#define HAVE_SNPRINTF
  #endif

  /* Define to 1 if your processor stores words with the most significant byte



Cheers,
-Edward


