Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 131752
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: greg [...] turnstep.com
Requestors: jkahrman [...] mathworks.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 3.10.5



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
Wow, that code hasn't been touched since 2002. You can run the test against a Linux database from Windows, FWIW.
Applied changes in 6e1ba4178bdad083b711c5b684faa9a2869150aa