# HG changeset patch # User Sebastien Jodogne # Date 1706362832 -3600 # Node ID 13721d3da2913c3287e8cdeda529d929e49f7c60 # Parent f1ab5c1121b91be688ab67ba685dd12d2be8d3a6 cont diff -r f1ab5c1121b9 -r 13721d3da291 Resources/CMake/LibTiffConfiguration.cmake --- a/Resources/CMake/LibTiffConfiguration.cmake Sat Jan 27 12:29:03 2024 +0100 +++ b/Resources/CMake/LibTiffConfiguration.cmake Sat Jan 27 14:40:32 2024 +0100 @@ -71,8 +71,9 @@ -DLZW_SUPPORT=1 ) - if (NOT MSVC) - # snprintf() is not available on Visual Studio 2008 + # snprintf() is not available on Visual Studio 2008 + check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF) + if (HAVE_SNPRINTF) add_definitions(-DHAVE_SNPRINTF=1) endif()