com php-src: Include libpq-fs.h on Windows, too: ext/pgsql/php _pgsql.h
| From: | Christoph Michael Becker | Date: | Fri, 12 Apr 2019 12:12:08 +0000 |
| Subject: | com php-src: Include libpq-fs.h on Windows, too: ext/pgsql/php _pgsql.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105696@lists.php.net to get a copy of this message | ||
Commit: 54bdb25d9f9e30de3c27e9eca80746d34f2aefdf
Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 12 Apr 2019 14:12:08 +0200
Parents: de401683c9ed2955bf41e1d719d646c786fb5be6
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=54bdb25d9f9e30de3c27e9eca80746d34f2aefdf
Log:
Include libpq-fs.h on Windows, too
That's more future proof than defining hard-coded macros.
Changed paths:
M ext/pgsql/php_pgsql.h
Diff:
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h
index b8365d6..0294ea1 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