diff options
Diffstat (limited to 'port')
-rw-r--r-- | port/CMakeLists.txt | 2 | ||||
-rw-r--r-- | port/libport.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/port/CMakeLists.txt b/port/CMakeLists.txt index 354ed4d7..8b221d1d 100644 --- a/port/CMakeLists.txt +++ b/port/CMakeLists.txt @@ -39,7 +39,7 @@ endif() if(NOT HAVE_LFIND) list(APPEND port_USED_FILES lfind.c) endif() -if(NOT HAVE_SNPRINTF AND NOT HAVE__SNPRINTF) +if(MSVC AND NOT HAVE_SNPRINTF) list(APPEND port_USED_FILES snprintf.c) endif() if(NOT HAVE_STRCASECMP) diff --git a/port/libport.h b/port/libport.h index 909ae1fc..8e73e0a3 100644 --- a/port/libport.h +++ b/port/libport.h @@ -1,4 +1,4 @@ -/* $Id: libport.h,v 1.3 2015-06-25 02:28:01 bfriesen Exp $ */ +/* $Id: libport.h,v 1.4 2015-07-04 22:09:27 bfriesen Exp $ */ /* * Copyright (c) 2009 Frank Warmerdam @@ -48,7 +48,7 @@ lfind(const void *key, const void *base, size_t *nmemb, size_t size, int(*compar)(const void *, const void *)); #endif -#if !defined(HAVE_SNPRINTF) && !defined(HAVE__SNPRINTF) +#if !defined(HAVE_SNPRINTF) int snprintf(char* str, size_t size, const char* format, ...); #endif |