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.

108 lines
3.7 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: pantheios/internal/lean.h
  3. *
  4. * Purpose: Suppresses as much as possible of operating-system headers,
  5. * to decrease compilation times.
  6. *
  7. * Created: 22nd April 2008
  8. * Updated: 10th August 2009
  9. *
  10. * Home: http://www.pantheios.org/
  11. *
  12. * Copyright (c) 2008-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
  17. * met:
  18. *
  19. * - Redistributions of source code must retain the above copyright notice,
  20. * this list of conditions and the following disclaimer.
  21. * - Redistributions in binary form must reproduce the above copyright
  22. * notice, this list of conditions and the following disclaimer in the
  23. * documentation and/or other materials provided with the distribution.
  24. * - Neither the names of Matthew Wilson and Synesis Software nor the names
  25. * of any contributors may be used to endorse or promote products derived
  26. * from this software without specific prior written permission.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  29. * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  30. * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  31. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  32. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  33. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  34. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  35. * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  36. * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  37. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  38. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39. *
  40. * ////////////////////////////////////////////////////////////////////// */
  41. /** \file pantheios/internal/lean.h
  42. *
  43. * [C, C++] INTERNAL FILE: Suppresses as much as possible of
  44. * operating-system headers, to decrease compilation times.
  45. */
  46. #ifndef PANTHEIOS_INCL_PANTHEIOS_INTERNAL_H_LEAN
  47. #define PANTHEIOS_INCL_PANTHEIOS_INTERNAL_H_LEAN
  48. /* /////////////////////////////////////////////////////////////////////////
  49. * Includes
  50. */
  51. #if defined(__FreeBSD__) || \
  52. defined(__NetBSD__) || \
  53. defined(__OpenBSD__) || \
  54. defined(__bsdi__) || \
  55. defined(_SYSTYPE_BSD)
  56. /* # include <pantheios/internal/bsdlean.h> */
  57. #endif /* BSD */
  58. #if defined(__sysv__) || \
  59. defined(__SVR4) || \
  60. defined(__svr4__) || \
  61. defined(_SYSTYPE_SVR4)
  62. /* # include <pantheios/internal/svr4lean.h> */
  63. #endif /* SVR4 */
  64. #if defined(__APPLE__) || \
  65. defined(__MACOSX__)
  66. /* # include <pantheios/internal/maclean.h> */
  67. #endif /* Mac */
  68. #if defined(hpux) || \
  69. defined(_hpux)
  70. /* # include <pantheios/internal/hpuxlean.h> */
  71. #endif /* HPUX */
  72. #if defined(__linux__) || \
  73. defined(__linux) || \
  74. defined(linux)
  75. /* # include <pantheios/internal/linuxlean.h> */
  76. #endif /* Linux */
  77. #if defined(sun) || \
  78. defined(__sun)
  79. /* # include <pantheios/internal/sunlean.h> */
  80. #endif /* Sun */
  81. #if defined(unix) || \
  82. defined(UNIX) || \
  83. defined(__unix__) || \
  84. defined(__unix)
  85. /* # include <pantheios/internal/unixlean.h> */
  86. #endif /* UNIX */
  87. #if defined(_WIN32) || \
  88. defined(_WIN64)
  89. # include <pantheios/internal/winlean.h>
  90. #endif /* _WIN32 && _WIN64 */
  91. /* ////////////////////////////////////////////////////////////////////// */
  92. #endif /* PANTHEIOS_INCL_PANTHEIOS_INTERNAL_H_LEAN */
  93. /* ///////////////////////////// end of file //////////////////////////// */