mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Prepare code to be built by MSVC:
o remove many WIN32_CLIENT_ONLY defines o add WIN32_ONLY_COMPILER define o add 3rd argument to open() for portability o add include/port/win32_msvc directory for system includes Magnus Hagander
This commit is contained in:
@@ -26,12 +26,18 @@
|
||||
#define NOCRYPT
|
||||
|
||||
#include <windows.h>
|
||||
#include <winsock.h>
|
||||
#include <stdio.h>
|
||||
#include "win32.h"
|
||||
#include "postgres_fe.h"
|
||||
#include "libpq-fe.h"
|
||||
#include "libpq-int.h"
|
||||
|
||||
/* Declared here to avoid pulling in all includes, which causes name collissions */
|
||||
#ifdef ENABLE_NLS
|
||||
extern char *
|
||||
libpq_gettext(const char *msgid)
|
||||
__attribute__((format_arg(1)));
|
||||
#else
|
||||
#define libpq_gettext(x) (x)
|
||||
#endif
|
||||
|
||||
|
||||
static struct WSErrorEntry
|
||||
{
|
||||
|
Reference in New Issue
Block a user