00001 /* ///////////////////////////////////////////////////////////////////////// 00002 * File: inetstl/includes/std/in_addr.h 00003 * 00004 * Purpose: Discrimination of various operating-specific header files 00005 * for Internet-related types. 00006 * 00007 * Created: 00008 * Updated: 10th August 2009 00009 * 00010 * Home: http://stlsoft.org/ 00011 * 00012 * Copyright (c) 2006-2009, Matthew Wilson and Synesis Software 00013 * All rights reserved. 00014 * 00015 * Redistribution and use in source and binary forms, with or without 00016 * modification, are permitted provided that the following conditions are met: 00017 * 00018 * - Redistributions of source code must retain the above copyright notice, this 00019 * list of conditions and the following disclaimer. 00020 * - Redistributions in binary form must reproduce the above copyright notice, 00021 * this list of conditions and the following disclaimer in the documentation 00022 * and/or other materials provided with the distribution. 00023 * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of 00024 * any contributors may be used to endorse or promote products derived from 00025 * this software without specific prior written permission. 00026 * 00027 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00028 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00029 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00030 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00031 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00032 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00033 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00034 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00035 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00036 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00037 * POSSIBILITY OF SUCH DAMAGE. 00038 * 00039 * ////////////////////////////////////////////////////////////////////// */ 00040 00041 00049 #ifndef INETSTL_INCL_INETSTL_INCLUDES_STD_H_IN_ADDR 00050 #define INETSTL_INCL_INETSTL_INCLUDES_STD_H_IN_ADDR 00051 00052 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION 00053 # define INETSTL_VER_INETSTL_INCLUDES_STD_H_IN_ADDR_MAJOR 1 00054 # define INETSTL_VER_INETSTL_INCLUDES_STD_H_IN_ADDR_MINOR 0 00055 # define INETSTL_VER_INETSTL_INCLUDES_STD_H_IN_ADDR_REVISION 2 00056 # define INETSTL_VER_INETSTL_INCLUDES_STD_H_IN_ADDR_EDIT 5 00057 #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */ 00058 00059 /* ///////////////////////////////////////////////////////////////////////// 00060 * Includes 00061 */ 00062 00063 #if defined(WIN32) 00064 00065 # if !defined(_WINSOCKAPI_) && \ 00066 !defined(_WINSOCK2API_) 00067 # include <winsock2.h> 00068 # endif /* !_WINSOCKAPI_ && !_WINSOCK2API_ */ 00069 00070 #else /* ? OS */ 00071 00072 # include <sys/types.h> 00073 # include <sys/socket.h> 00074 # include <netinet/in.h> 00075 # include <arpa/inet.h> 00076 00077 #endif /* OS */ 00078 00079 /* ////////////////////////////////////////////////////////////////////// */ 00080 00081 #endif /* INETSTL_INCL_INETSTL_INCLUDES_STD_H_IN_ADDR */ 00082 00083 /* ///////////////////////////// end of file //////////////////////////// */