From 54bdb25d9f9e30de3c27e9eca80746d34f2aefdf Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 12 Apr 2019 14:12:08 +0200 Subject: Include libpq-fs.h on Windows, too That's more future proof than defining hard-coded macros. --- ext/pgsql/php_pgsql.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/pgsql/php_pgsql.h') diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index b8365d659a..0294ea10a9 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -34,9 +34,8 @@ extern zend_module_entry pgsql_module_entry; #undef SOCKET_SIZE_TYPE #include +#include #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 # if defined(__GNUC__) && __GNUC__ >= 4 # define PHP_PGSQL_API __attribute__ ((visibility("default"))) # else -- cgit v1.2.1