/* * windows.h * * Include supplementary headers for core Win32 API definitions. * * $Id: windows.h,v 7258c92e2a48 2017/11/14 20:07:02 keith $ * * Written by Anders Norlander * Copyright (C) 1998-2003, 2006, 2007, 2016, 2017, MinGW.org Project * * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * */ #ifndef _WINDOWS_H #pragma GCC system_header #define _WINDOWS_H #ifdef RC_INVOKED /* winresrc.h includes the necessary headers */ #include #else #include #include #include #include #if !(defined NOGDI || defined _WINGDI_H) #include #endif #include #include #include #include #include #include #ifndef WIN32_LEAN_AND_MEAN #include #include #include #include #include #include #include #include #include #include #include #ifndef NOGDI #include #include #endif #if defined Win32_Winsock #warning "The Win32_Winsock macro is deprecated; use __USE_W32_SOCKETS instead." # ifndef __USE_W32_SOCKETS # define __USE_W32_SOCKETS # endif #endif #if defined __USE_W32_SOCKETS \ || ! (defined __CYGWIN__ || defined __MSYS__ || defined _UWIN) /* The WinSock API should be declared; including the following * private header file will make an informed choice between the * WinSock v1.1 API, as declared in , and WinSock v2, * as declared in , as the preferred default level * of WinSock API support to be offered. */ # include "_winsock.h" /* * FIXME: strict Microsoft compatibility may require inclusion * of here as well; however, this has been observed * to produce undefined symbol errors, if has been * included before , so we omit this. */ # /* include */ #endif #ifndef NOGDI /* In older versions we disallowed COM declarations in __OBJC__ because of conflicts with @interface directive. Define _OBJC_NO_COM to keep this behaviour. */ #if !defined (_OBJC_NO_COM) #if (__GNUC__ >= 3) || defined (__WATCOMC__) #include #endif #endif /* _OBJC_NO_COM */ #endif #endif /* WIN32_LEAN_AND_MEAN */ #endif /* RC_INVOKED */ #ifdef __OBJC__ /* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int), but undefining it causes trouble as well if a file is included after windows.h */ #undef BOOL #endif #endif /* _WINDOWS_H: $RCSfile: windows.h,v $: end of file */