diff options
author | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2015-08-21 01:59:33 +0000 |
---|---|---|
committer | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2015-08-21 01:59:33 +0000 |
commit | c65c70205cad73767bc795ca7cbd472419d0317f (patch) | |
tree | 62a30337af645d74c5a00a5134c3cfbd28df239c | |
parent | 8ba4a1c8946016d6b82d854d6fbcdc7ed9d0e513 (diff) | |
download | libtiff-git-c65c70205cad73767bc795ca7cbd472419d0317f.tar.gz |
Fix Cmake build issues caused by Windows large file updates.
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | port/snprintf.c | 4 | ||||
-rw-r--r-- | tools/CMakeLists.txt | 1 |
4 files changed, 13 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d49508a0..25e45c16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -397,6 +397,10 @@ int main(void) { }" HAVE_SNPRINTF) +if(NOT HAVE_SNPRINTF) + add_definitions(-DNEED_LIBPORT) +endif() + # CPU bit order set(fillorder FILLORDER_MSB2LSB) if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i.*86.*" OR @@ -1,3 +1,9 @@ +2015-08-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> + + * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to + fix build issues when using Cmake due to Windows large file + changes. + 2015-08-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> * libtiff/tiffiop.h: First cut at supporting large files under diff --git a/port/snprintf.c b/port/snprintf.c index ce261291..1c4ac087 100644 --- a/port/snprintf.c +++ b/port/snprintf.c @@ -11,7 +11,7 @@ #include <stdarg.h> #include "libport.h" -int vsnprintf(char* str, size_t size, const char* format, va_list ap) +int _TIFF_vsnprintf_f(char* str, size_t size, const char* format, va_list ap) { int count = -1; @@ -23,7 +23,7 @@ int vsnprintf(char* str, size_t size, const char* format, va_list ap) return count; } -int snprintf(char* str, size_t size, const char* format, ...) +int _TIFF_snprintf_f(char* str, size_t size, const char* format, ...) { int count; va_list ap; diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index c8a5005f..a595c4b8 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -26,6 +26,7 @@ extra_dist(Makefile.vc) include_directories(${PROJECT_SOURCE_DIR}/libtiff ${PROJECT_BINARY_DIR}/libtiff + ${PROJECT_SOURCE_DIR}/port ${CMAKE_CURRENT_BINARY_DIR}) add_executable(bmp2tiff bmp2tiff.c) |