blob: 93df14ed7ce3a4bbd8d4a891163a05c1348bab7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|