From: Michael R Sweet Date: Wed, 1 May 2019 19:47:36 +0000 (-0400) Subject: Don't use Windows snprintf/vsnprintf since they don't conform to C99... X-Git-Tag: v2.3b8~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f145615d2bce5597c183eaa93238399eadbf76a;p=thirdparty%2Fcups.git Don't use Windows snprintf/vsnprintf since they don't conform to C99... --- diff --git a/vcnet/config.h b/vcnet/config.h index d5d1b5c6ba..1c04b91653 100644 --- a/vcnet/config.h +++ b/vcnet/config.h @@ -1,10 +1,11 @@ /* * Configuration file for CUPS on Windows. * - * Copyright 2007-2019 by Apple Inc. - * Copyright 1997-2007 by Easy Software Products. + * Copyright © 2007-2019 by Apple Inc. + * Copyright © 1997-2007 by Easy Software Products. * - * Licensed under Apache License v2.0. See the file "LICENSE" for more information. + * Licensed under Apache License v2.0. See the file "LICENSE" for more + * information. */ #ifndef _CUPS_CONFIG_H_ @@ -40,10 +41,8 @@ #define open _open #define read _read #define rmdir _rmdir -#define snprintf _snprintf #define strdup _strdup #define unlink _unlink -#define vsnprintf _vsnprintf #define write _write @@ -323,8 +322,9 @@ typedef unsigned long useconds_t; * Do we have the (v)snprintf() functions? */ -#define HAVE_SNPRINTF 1 -#define HAVE_VSNPRINTF 1 +/* Windows snprintf/vsnprintf are non-conforming */ +/* #undef HAVE_SNPRINTF */ +/* #undef HAVE_VSNPRINTF */ /*