Subject: | Build failed with VS2015 |
Encountered the following error while upgrading from VS2013 from VS2015
Pg.c(3374): error C2129: static function 'int *_errno(void)' declared but not defined
c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\errno.h(17): note: see declaration of '_errno'
Conditionally excluding the errno declaration appeared to resolve the build issue but I don't currently have a database instance I can run the tests against.
Subject: | DBDPg_VS2015.patch |
--- a/Pg.h 2020-01-13 23:06:55.000000000 -0500
+++ b/Pg.h 2020-01-13 23:06:55.000000000 -0500
@@ -11,7 +11,9 @@
#include <wchar.h>
#ifdef WIN32
+#if (!defined(_MSC_VER) || (_MSC_VER < 1900))
static int errno;
+#endif
#include <string.h>
#define strcasecmp(s1,s2) stricmp((s1), (s2))
#else