2 windows.h - main header file for the Win32 API
4 Written by Anders Norlander <anorland@hem2.passagen.se>
6 This file is part of a free library for the Win32 API.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 #pragma GCC system_header
20 #include <msvctarget.h>
23 #if defined(_M_IX86) && !defined(_X86_)
25 #elif defined(_M_ALPHA) && !defined(_ALPHA_)
27 #elif defined(_M_ARM) && !defined(_ARM_)
29 #elif defined(_M_PPC) && !defined(_PPC_)
31 #elif defined(_M_MRX000) && !defined(_MIPS_)
33 #elif defined(_M_M68K) && !defined(_68K_)
38 /* winresrc.h includes the necessary headers */
46 #if !(defined NOGDI || defined _WINGDI_H)
69 #ifndef WIN32_LEAN_AND_MEAN
85 #if defined(Win32_Winsock)
86 #warning "The Win32_Winsock macro name is deprecated.\
87 Please use __USE_W32_SOCKETS instead"
88 #ifndef __USE_W32_SOCKETS
89 #define __USE_W32_SOCKETS
92 #if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
93 #if (_WIN32_WINNT >= 0x0400)
96 * MS likes to include mswsock.h here as well,
97 * but that can cause undefined symbols if
98 * winsock2.h is included before windows.h
102 #endif /* (_WIN32_WINNT >= 0x0400) */
105 #if !defined (__OBJC__)
106 #if (__GNUC__ >= 3) || defined (__WATCOMC__)
109 #endif /* __OBJC__ */
112 #endif /* WIN32_LEAN_AND_MEAN */
114 #endif /* RC_INVOKED */
117 /* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
118 but undefining it causes trouble as well if a file is included after