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
19 /* translate GCC target defines to MS equivalents. Keep this synchronized
21 #if defined(__i686__) && !defined(_M_IX86)
23 #elif defined(__i586__) && !defined(_M_IX86)
25 #elif defined(__i486__) && !defined(_M_IX86)
27 #elif defined(__i386__) && !defined(_M_IX86)
30 #if defined(_M_IX86) && !defined(_X86_)
32 #elif defined(_M_ALPHA) && !defined(_ALPHA_)
34 #elif defined(_M_PPC) && !defined(_PPC_)
36 #elif defined(_M_MRX000) && !defined(_MIPS_)
38 #elif defined(_M_M68K) && !defined(_68K_)
43 /* winresrc.h includes the necessary headers */
51 #if !(defined NOGDI || defined _WINGDI_H)
74 #ifndef WIN32_LEAN_AND_MEAN
90 #if defined(Win32_Winsock)
91 #warning "The Win32_Winsock macro name is deprecated.\
92 Please use __USE_W32_SOCKETS instead"
93 #ifndef __USE_W32_SOCKETS
94 #define __USE_W32_SOCKETS
97 #if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
98 #if (_WIN32_WINNT >= 0x0400)
101 * MS likes to include mswsock.h here as well,
102 * but that can cause undefined symbols if
103 * winsock2.h is included before windows.h
107 #endif /* (_WIN32_WINNT >= 0x0400) */
110 #if !defined (__OBJC__)
111 #if (__GNUC__ >= 3) || defined (__WATCOMC__)
114 #endif /* __OBJC__ */
117 #endif /* WIN32_LEAN_AND_MEAN */
119 #endif /* RC_INVOKED */
122 /* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
123 but undefining it causes trouble as well if a file is included after