mirror of
https://github.com/postgres/postgres.git
synced 2025-12-22 17:42:17 +03:00
Rename Win32 include directory from win32_include to win32.
This commit is contained in:
15
src/include/port/win32/sys/socket.h
Normal file
15
src/include/port/win32/sys/socket.h
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* 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>
|
||||
#undef ERROR
|
||||
#undef small
|
||||
|
||||
/* Restore old ERROR value */
|
||||
#ifdef PGERROR
|
||||
#define ERROR PGERROR
|
||||
#endif
|
||||
0
src/include/port/win32/sys/wait.h
Normal file
0
src/include/port/win32/sys/wait.h
Normal file
Reference in New Issue
Block a user