1 /* $Xorg$ */ 2 /* 3 4 Copyright 1996, 1998 The Open Group 5 6 Permission to use, copy, modify, distribute, and sell this software and its 7 documentation for any purpose is hereby granted without fee, provided that 8 the above copyright notice appear in all copies and that both that 9 copyright notice and this permission notice appear in supporting 10 documentation. 11 12 The above copyright notice and this permission notice shall be included 13 in all copies or substantial portions of the Software. 14 15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- 17 ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 18 SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL- 19 ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21 IN THE SOFTWARE. 22 23 Except as contained in this notice, the name of The Open Group shall 24 not be used in advertising or otherwise to promote the sale, use or 25 other dealings in this Software without prior written authorization from 26 The Open Group. 27 28 */ 29 30 /* 31 * This header file has for sole purpose to allow to include windows.h 32 * without getting any name conflicts with our code. 33 * Conflicts come from the fact that including windows.h actually pulls 34 * in the whole Windows API... 35 */ 36 37 #undef _XFree86Server 38 #ifdef XFree86Server 39 #define _XFree86Server 40 #undef XFree86Server 41 #endif 42 43 #define BOOL wBOOL 44 #define INT32 wINT32 45 #undef Status 46 #define Status wStatus 47 #define ATOM wATOM 48 #define BYTE wBYTE 49 #define FreeResource wFreeResource 50 #include <windows.h> 51 #undef Status 52 #define Status int 53 #undef BYTE 54 #undef BOOL 55 #undef INT32 56 #undef ATOM 57 #undef FreeResource 58 #undef CreateWindowA 59 #undef min 60 #undef max 61 62 #ifdef RESOURCE_H 63 #undef RT_FONT 64 #undef RT_CURSOR 65 #define RT_FONT ((RESTYPE)4) 66 #define RT_CURSOR ((RESTYPE)5) 67 #endif 68 69 #define sleep(x) Sleep(1000*x) 70 71 #if defined(WIN32) && (!defined(PATH_MAX) || PATH_MAX < 1024) 72 #undef PATH_MAX 73 #define PATH_MAX 1024 74 #endif 75 76 #ifdef _XFree86Server 77 #define XFree86Server 78 #undef _XFree86Server 79 #endif 80 81