Home | History | Annotate | Download | only in X11
      1 /* $Xorg: Xwinsock.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */
      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 winsock.h
     32  * without getting any name conflicts with our code.
     33  * Conflicts come from the fact that including winsock.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 <winsock.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 RT_FONT
     60 #undef RT_CURSOR
     61 
     62 #ifdef _XFree86Server
     63 #define XFree86Server
     64 #undef _XFree86Server
     65 #endif
     66 
     67