summaryrefslogtreecommitdiff
path: root/ext/pgsql/php_pgsql.h
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-04-12 14:12:08 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-04-12 14:12:08 +0200
commit54bdb25d9f9e30de3c27e9eca80746d34f2aefdf (patch)
tree7cde1218efcd9f9325a9c37f33f0bcc68ecaa111 /ext/pgsql/php_pgsql.h
parentde401683c9ed2955bf41e1d719d646c786fb5be6 (diff)
downloadphp-git-54bdb25d9f9e30de3c27e9eca80746d34f2aefdf.tar.gz
Include libpq-fs.h on Windows, too
That's more future proof than defining hard-coded macros.
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
-rw-r--r--ext/pgsql/php_pgsql.h4
1 files changed, 1 insertions, 3 deletions
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 <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