diff options
author | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2015-08-19 02:31:04 +0000 |
---|---|---|
committer | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2015-08-19 02:31:04 +0000 |
commit | 8ba4a1c8946016d6b82d854d6fbcdc7ed9d0e513 (patch) | |
tree | 1126eeea753ab891c8d5ff82ef0f097e79024489 /port | |
parent | a0e1185771f502b81ba07b1ec3b25ea56a6de114 (diff) | |
download | libtiff-git-8ba4a1c8946016d6b82d854d6fbcdc7ed9d0e513.tar.gz |
Support large files under Windows using tif_unix.c and libtiff tools.
Diffstat (limited to 'port')
-rw-r--r-- | port/Makefile.vc | 3 | ||||
-rw-r--r-- | port/libport.h | 7 | ||||
-rw-r--r-- | port/snprintf.c | 1 |
3 files changed, 9 insertions, 2 deletions
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 <dron@ak4719.spb.edu> # @@ -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 <stdio.h> #include <stdarg.h> +#include "libport.h" int vsnprintf(char* str, size_t size, const char* format, va_list ap) { |