You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
3.2 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: inetstl/includes/std/in_addr.h
  3. *
  4. * Purpose: Discrimination of various operating-specific header files
  5. * for Internet-related types.
  6. *
  7. * Created:
  8. * Updated: 10th August 2009
  9. *
  10. * Home: http://stlsoft.org/
  11. *
  12. * Copyright (c) 2006-2009, Matthew Wilson and Synesis Software
  13. * All rights reserved.
  14. *
  15. * Redistribution and use in source and binary forms, with or without
  16. * modification, are permitted provided that the following conditions are met:
  17. *
  18. * - Redistributions of source code must retain the above copyright notice, this
  19. * list of conditions and the following disclaimer.
  20. * - Redistributions in binary form must reproduce the above copyright notice,
  21. * this list of conditions and the following disclaimer in the documentation
  22. * and/or other materials provided with the distribution.
  23. * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of
  24. * any contributors may be used to endorse or promote products derived from
  25. * this software without specific prior written permission.
  26. *
  27. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  28. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  29. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  30. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  31. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  32. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  33. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  34. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  35. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  36. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37. * POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. * ////////////////////////////////////////////////////////////////////// */
  40. /** \file inetstl/includes/std/in_addr.h
  41. *
  42. * \brief [C, C++] Discrimination of various operating-specific header files
  43. * for Internet-related types
  44. * (\ref group__library__utility "Utility" Library).
  45. */
  46. #ifndef INETSTL_INCL_INETSTL_INCLUDES_STD_H_IN_ADDR
  47. #define INETSTL_INCL_INETSTL_INCLUDES_STD_H_IN_ADDR
  48. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  49. # define INETSTL_VER_INETSTL_INCLUDES_STD_H_IN_ADDR_MAJOR 1
  50. # define INETSTL_VER_INETSTL_INCLUDES_STD_H_IN_ADDR_MINOR 0
  51. # define INETSTL_VER_INETSTL_INCLUDES_STD_H_IN_ADDR_REVISION 2
  52. # define INETSTL_VER_INETSTL_INCLUDES_STD_H_IN_ADDR_EDIT 5
  53. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  54. /* /////////////////////////////////////////////////////////////////////////
  55. * Includes
  56. */
  57. #if defined(WIN32)
  58. # if !defined(_WINSOCKAPI_) && \
  59. !defined(_WINSOCK2API_)
  60. # include <winsock2.h>
  61. # endif /* !_WINSOCKAPI_ && !_WINSOCK2API_ */
  62. #else /* ? OS */
  63. # include <sys/types.h>
  64. # include <sys/socket.h>
  65. # include <netinet/in.h>
  66. # include <arpa/inet.h>
  67. #endif /* OS */
  68. /* ////////////////////////////////////////////////////////////////////// */
  69. #endif /* INETSTL_INCL_INETSTL_INCLUDES_STD_H_IN_ADDR */
  70. /* ///////////////////////////// end of file //////////////////////////// */