]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't use Windows snprintf/vsnprintf since they don't conform to C99...
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 1 May 2019 19:47:36 +0000 (15:47 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 1 May 2019 19:47:36 +0000 (15:47 -0400)
vcnet/config.h

index d5d1b5c6babb027cfd1780436963d35db70b7d1f..1c04b91653b7cf8a819dc8d42322795d176eb78d 100644 (file)
@@ -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_
 #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 */
 
 
 /*