summaryrefslogtreecommitdiff
path: root/port
diff options
context:
space:
mode:
authorbfriesen <bfriesen>2015-08-19 02:31:04 +0000
committerbfriesen <bfriesen>2015-08-19 02:31:04 +0000
commitf3fc4eaff5b0d3ef9b0464e60540a051909b8156 (patch)
tree47f838852056611f5b2459f550c97eedef52f2ab /port
parent5d2b2f4d47cdc6e49336a5bb1cba3c7840ef7ed8 (diff)
downloadlibtiff-f3fc4eaff5b0d3ef9b0464e60540a051909b8156.tar.gz
Support large files under Windows using tif_unix.c and libtiff tools.
Diffstat (limited to 'port')
-rw-r--r--port/Makefile.vc3
-rw-r--r--port/libport.h7
-rw-r--r--port/snprintf.c1
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)
{