XCB  1.11.1
xcb_windefs.h
00001 /* Copyright (C) 2009 Jatin Golani.
00002  *
00003  * Permission is hereby granted, free of charge, to any person obtaining a
00004  * copy of this software and associated documentation files (the "Software"),
00005  * to deal in the Software without restriction, including without limitation
00006  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00007  * and/or sell copies of the Software, and to permit persons to whom the
00008  * Software is furnished to do so, subject to the following conditions:
00009  * 
00010  * The above copyright notice and this permission notice shall be included in
00011  * all copies or substantial portions of the Software.
00012  * 
00013  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00014  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00015  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00016  * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00017  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00018  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00019  * 
00020  * Except as contained in this notice, the names of the authors or their
00021  * institutions shall not be used in advertising or otherwise to promote the
00022  * sale, use or other dealings in this Software without prior written
00023  * authorization from the authors.
00024  */
00025 
00026 
00027 #ifndef _XCB_WINDEFS_H
00028 #define _XCB_WINDEFS_H
00029 
00030 #ifndef WINVER
00031 #define WINVER 0x0501 /* required for getaddrinfo/freeaddrinfo defined only for WinXP and above */
00032 #endif
00033 
00034 #include <winsock2.h>
00035 #include <ws2tcpip.h>
00036 #include <windef.h>
00037 
00038 struct iovec  {
00039     void *iov_base;    /* Pointer to data.  */
00040     int iov_len;       /* Length of data.  */
00041 };
00042 
00043 typedef unsigned int in_addr_t;
00044 
00045 #endif /* xcb_windefs.h */