Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * src/include/port/win32/sys/socket.h
 */
#ifndef WIN32_SYS_SOCKET_H
#define WIN32_SYS_SOCKET_H
 
/*
 * Unfortunately, <wingdi.h> of VC++ also defines ERROR.
 * To avoid the conflict, we include <windows.h> here and undefine ERROR
 * immediately.
 *
 * Note: Don't include <wingdi.h> directly.  It causes compile errors.
 */
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
 
#undef ERROR
#undef small
 
/* Restore old ERROR value */
#ifdef PGERROR
#define ERROR PGERROR
#endif
 
/*
 * We don't use the Windows gai_strerror[A] function because it is not
 * thread-safe.  We define our own in src/port/win32gai_strerror.c.
 */
#undef gai_strerror
 
extern const char *gai_strerror(int errcode);
 
#endif                          /* WIN32_SYS_SOCKET_H */