mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Enable building with the Mingw64 compiler.
This can be used to build 64 bit Windows binaries, not only on 64 bit Windows but on supported cross-compiling hosts including 32 bit Windows, Cygwin, Darwin and Linux.
This commit is contained in:
@@ -325,8 +325,12 @@ extern FILE *pgwin32_fopen(const char *, const char *);
|
||||
#define fopen(a,b) pgwin32_fopen(a,b)
|
||||
#endif
|
||||
|
||||
#ifndef popen
|
||||
#define popen(a,b) _popen(a,b)
|
||||
#endif
|
||||
#ifndef pclose
|
||||
#define pclose(a) _pclose(a)
|
||||
#endif
|
||||
|
||||
/* New versions of MingW have gettimeofday, old mingw and msvc don't */
|
||||
#ifndef HAVE_GETTIMEOFDAY
|
||||
|
Reference in New Issue
Block a user