From f3fc4eaff5b0d3ef9b0464e60540a051909b8156 Mon Sep 17 00:00:00 2001 From: bfriesen Date: Wed, 19 Aug 2015 02:31:04 +0000 Subject: Support large files under Windows using tif_unix.c and libtiff tools. --- port/Makefile.vc | 3 ++- port/libport.h | 7 ++++++- port/snprintf.c | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'port') diff --git a/port/Makefile.vc b/port/Makefile.vc index fa98f3f8..bde48048 100644 --- a/port/Makefile.vc +++ b/port/Makefile.vc @@ -1,4 +1,4 @@ -# $Id: Makefile.vc,v 1.4 2006-03-23 14:54:02 dron Exp $ +# $Id: Makefile.vc,v 1.5 2015-08-19 02:31:04 bfriesen Exp $ # # Copyright (C) 2004, Andrey Kiselev # @@ -29,6 +29,7 @@ !INCLUDE ..\nmake.opt OBJ = \ + snprintf.obj \ strcasecmp.obj \ getopt.obj diff --git a/port/libport.h b/port/libport.h index 8e73e0a3..d9b04215 100644 --- a/port/libport.h +++ b/port/libport.h @@ -1,4 +1,4 @@ -/* $Id: libport.h,v 1.4 2015-07-04 22:09:27 bfriesen Exp $ */ +/* $Id: libport.h,v 1.5 2015-08-19 02:31:04 bfriesen Exp $ */ /* * Copyright (c) 2009 Frank Warmerdam @@ -49,6 +49,11 @@ lfind(const void *key, const void *base, size_t *nmemb, size_t size, #endif #if !defined(HAVE_SNPRINTF) +#undef vsnprintf +#define vsnprintf _TIFF_vsnprintf_f + +#undef snprintf +#define snprintf _TIFF_snprintf_f int snprintf(char* str, size_t size, const char* format, ...); #endif diff --git a/port/snprintf.c b/port/snprintf.c index ddbf6581..ce261291 100644 --- a/port/snprintf.c +++ b/port/snprintf.c @@ -9,6 +9,7 @@ #include #include +#include "libport.h" int vsnprintf(char* str, size_t size, const char* format, va_list ap) { -- cgit v1.2.1