Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:36

0001 /*
0002 
0003 Copyright 1996, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included
0012 in all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
0015 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
0016 ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT
0017 SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL-
0018 ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0019 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
0020 IN THE SOFTWARE.
0021 
0022 Except as contained in this notice, the name of The Open Group shall
0023 not be used in advertising or otherwise to promote the sale, use or
0024 other dealings in this Software without prior written authorization from
0025 The Open Group.
0026 
0027 */
0028 
0029 /*
0030  * This header file has for sole purpose to allow to include winsock.h
0031  * without getting any name conflicts with our code.
0032  * Conflicts come from the fact that including winsock.h actually pulls
0033  * in the whole Windows API...
0034  */
0035 
0036 #undef _XFree86Server
0037 #ifdef XFree86Server 
0038 # define _XFree86Server
0039 # undef XFree86Server
0040 #endif
0041 
0042 /*
0043  * mingw-w64 headers define BOOL as a typedef, protecting against macros
0044  * mingw.org headers define BOOL in terms of WINBOOL
0045  * ... so try to come up with something which works with both :-)
0046  */
0047 #define _NO_BOOL_TYPEDEF
0048 #define BOOL WINBOOL
0049 #define INT32 wINT32
0050 #undef Status
0051 #define Status wStatus
0052 #define ATOM wATOM
0053 #define BYTE wBYTE
0054 #define FreeResource wFreeResource
0055 #include <winsock2.h>
0056 #undef Status
0057 #define Status int
0058 #undef BYTE
0059 #undef BOOL
0060 #undef INT32
0061 #undef ATOM
0062 #undef FreeResource
0063 #undef CreateWindowA
0064 #undef RT_FONT
0065 #undef RT_CURSOR
0066 
0067 /*
0068  * Older version of this header used to name the windows API bool type wBOOL,
0069  * rather than more standard name WINBOOL
0070  */
0071 #define wBOOL WINBOOL
0072 
0073 #ifdef _XFree86Server
0074 # define XFree86Server
0075 # undef _XFree86Server
0076 #endif
0077