vcpkg/ports/soci/no-define-snprintf.patch

15 lines
383 B
Diff
Raw Normal View History

2018-05-20 09:08:17 +08:00
diff --git a/src/core/soci-platform.h b/src/core/soci-platform.h
index aa5e4b1..2d8c5c7 100644
--- a/src/core/soci-platform.h
+++ b/src/core/soci-platform.h
@@ -24,7 +24,9 @@
#endif
// Define if you have the snprintf variants.
+#if _MSC_VER < 1900
#define snprintf _snprintf
+#endif
// Define if you have the strtoll and strtoull variants.
#if _MSC_VER < 1300