From: Christoph M. Becker Date: Fri, 12 Apr 2019 12:12:08 +0000 (+0200) Subject: Include libpq-fs.h on Windows, too X-Git-Tag: php-7.4.0alpha1~520 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54bdb25d9f9e30de3c27e9eca80746d34f2aefdf;p=php Include libpq-fs.h on Windows, too That's more future proof than defining hard-coded macros. --- 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