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.
17 #include <msvctarget.h>
20 #if defined(_M_IX86) && !defined(_X86_)
22 #elif defined(_M_ALPHA) && !defined(_ALPHA_)
24 #elif defined(_M_ARM) && !defined(_ARM_)
26 #elif defined(_M_PPC) && !defined(_PPC_)
28 #elif defined(_M_MRX000) && !defined(_MIPS_)
30 #elif defined(_M_M68K) && !defined(_68K_)
35 /* winresrc.h includes the necessary headers */
62 #ifndef WIN32_LEAN_AND_MEAN
83 #if defined(Win32_Winsock)
84 #warning "The Win32_Winsock macro name is deprecated.\
85 Please use __USE_W32_SOCKETS instead"
86 #ifndef __USE_W32_SOCKETS
87 #define __USE_W32_SOCKETS
90 #if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
91 #if (_WIN32_WINNT >= 0x0400)
94 * MS likes to include mswsock.h here as well,
95 * but that can cause undefined symbols if
96 * winsock2.h is included before windows.h
100 #endif /* (_WIN32_WINNT >= 0x0400) */
103 #if !defined (__OBJC__)
104 #if (defined(__GNUC__) && (__GNUC__ >= 3)) || defined (__WATCOMC__) || defined(_MSC_VER)
107 #endif /* __OBJC__ */
110 #endif /* WIN32_LEAN_AND_MEAN */
112 #endif /* RC_INVOKED */
115 /* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
116 but undefining it causes trouble as well if a file is included after