From 3abb8bff608ef5a20aa37dfb6cfa0840e771a4b6 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Thu, 4 Feb 2021 16:46:21 -0600 Subject: [PATCH] w32: Drop snprintf(), vsnprintf() macros for Visual Studio The Visual Studio ANSI C compatibility flag now covers these functions so now the defines create a conflict. Signed-off-by: Ron Koenderink Signed-off-by: Markus Armbruster --- src/lib/w32/w32misc.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/w32/w32misc.h b/src/lib/w32/w32misc.h index 7f8a8a157..92a900c8a 100644 --- a/src/lib/w32/w32misc.h +++ b/src/lib/w32/w32misc.h @@ -51,12 +51,6 @@ #define O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR) #endif -/* stdio.h */ -#ifdef _MSC_VER -#define snprintf _snprintf -#define vsnprintf _vsnprintf -#endif - /* time.h */ struct tm; extern char *strptime(const char *buf, const char *fmt, struct tm *tm); -- 2.43.0