]> granicus.if.org Git - php/commitdiff
Include libpq-fs.h on Windows, too
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 12 Apr 2019 12:12:08 +0000 (14:12 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 12 Apr 2019 12:12:08 +0000 (14:12 +0200)
That's more future proof than defining hard-coded macros.

ext/pgsql/php_pgsql.h

index b8365d659ac4579b537c338a6dfc2f39b2171970..0294ea10a98080e680d4b09eb512b5babe3d5259 100644 (file)
@@ -34,9 +34,8 @@ extern zend_module_entry pgsql_module_entry;
 #undef SOCKET_SIZE_TYPE
 #include <libpq-fe.h>
 
+#include <libpq/libpq-fs.h>
 #ifdef PHP_WIN32
-#define INV_WRITE            0x00020000
-#define INV_READ             0x00040000
 #undef PHP_PGSQL_API
 #ifdef PGSQL_EXPORTS
 #define PHP_PGSQL_API __declspec(dllexport)
@@ -44,7 +43,6 @@ extern zend_module_entry pgsql_module_entry;
 #define PHP_PGSQL_API __declspec(dllimport)
 #endif
 #else
-#include <libpq/libpq-fs.h>
 # if defined(__GNUC__) && __GNUC__ >= 4
 #  define PHP_PGSQL_API __attribute__ ((visibility("default")))
 # else