Skip to content

Commit 54bdb25

Browse files
committed
Include libpq-fs.h on Windows, too
That's more future proof than defining hard-coded macros.
1 parent de40168 commit 54bdb25

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/pgsql/php_pgsql.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,15 @@ extern zend_module_entry pgsql_module_entry;
3434
#undef SOCKET_SIZE_TYPE
3535
#include <libpq-fe.h>
3636

37+
#include <libpq/libpq-fs.h>
3738
#ifdef PHP_WIN32
38-
#define INV_WRITE 0x00020000
39-
#define INV_READ 0x00040000
4039
#undef PHP_PGSQL_API
4140
#ifdef PGSQL_EXPORTS
4241
#define PHP_PGSQL_API __declspec(dllexport)
4342
#else
4443
#define PHP_PGSQL_API __declspec(dllimport)
4544
#endif
4645
#else
47-
#include <libpq/libpq-fs.h>
4846
# if defined(__GNUC__) && __GNUC__ >= 4
4947
# define PHP_PGSQL_API __attribute__ ((visibility("default")))
5048
# else

0 commit comments

Comments
 (0)