Configure.h.in 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
  3. #ifndef @KWSYS_NAMESPACE@_Configure_h
  4. #define @KWSYS_NAMESPACE@_Configure_h
  5. /* If we are building a kwsys .c or .cxx file, let it use the kwsys
  6. namespace. When not building a kwsys source file these macros are
  7. temporarily defined inside the headers that use them. */
  8. #if defined(KWSYS_NAMESPACE)
  9. # define kwsys_ns(x) @KWSYS_NAMESPACE@##x
  10. # define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT
  11. #endif
  12. /* Disable some warnings inside kwsys source files. */
  13. #if defined(KWSYS_NAMESPACE)
  14. # if defined(__BORLANDC__)
  15. # pragma warn - 8027 /* function not inlined. */
  16. # endif
  17. # if defined(__INTEL_COMPILER)
  18. # pragma warning(disable : 1572) /* floating-point equality test */
  19. # endif
  20. # if defined(__sgi) && !defined(__GNUC__)
  21. # pragma set woff 3970 /* pointer to int conversion */
  22. # pragma set woff 3968 /* 64 bit conversion */
  23. # endif
  24. #endif
  25. /* Whether kwsys namespace is "kwsys". */
  26. #define @KWSYS_NAMESPACE@_NAME_IS_KWSYS @KWSYS_NAME_IS_KWSYS@
  27. /* Setup the export macro. */
  28. #if @KWSYS_BUILD_SHARED@
  29. # if defined(_WIN32) || defined(__CYGWIN__)
  30. # if defined(@KWSYS_NAMESPACE@_EXPORTS)
  31. # define @KWSYS_NAMESPACE@_EXPORT __declspec(dllexport)
  32. # else
  33. # define @KWSYS_NAMESPACE@_EXPORT __declspec(dllimport)
  34. # endif
  35. # elif __GNUC__ >= 4
  36. # define @KWSYS_NAMESPACE@_EXPORT __attribute__((visibility("default")))
  37. # else
  38. # define @KWSYS_NAMESPACE@_EXPORT
  39. # endif
  40. #else
  41. # define @KWSYS_NAMESPACE@_EXPORT
  42. #endif
  43. /* Enable warnings that are off by default but are useful. */
  44. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_ENABLE)
  45. # if defined(_MSC_VER)
  46. # pragma warning(default : 4263) /* no override, call convention differs \
  47. */
  48. # endif
  49. #endif
  50. /* Disable warnings that are on by default but occur in valid code. */
  51. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE)
  52. # if defined(_MSC_VER)
  53. # pragma warning(disable : 4097) /* typedef is synonym for class */
  54. # pragma warning(disable : 4127) /* conditional expression is constant */
  55. # pragma warning(disable : 4244) /* possible loss in conversion */
  56. # pragma warning(disable : 4251) /* missing DLL-interface */
  57. # pragma warning(disable : 4305) /* truncation from type1 to type2 */
  58. # pragma warning(disable : 4309) /* truncation of constant value */
  59. # pragma warning(disable : 4514) /* unreferenced inline function */
  60. # pragma warning(disable : 4706) /* assignment in conditional expression \
  61. */
  62. # pragma warning(disable : 4710) /* function not inlined */
  63. # pragma warning(disable : 4786) /* identifier truncated in debug info */
  64. # endif
  65. # if defined(__BORLANDC__) && !defined(__cplusplus)
  66. /* Code has no effect; raised by winnt.h in C (not C++) when ignoring an
  67. unused parameter using "(param)" syntax (i.e. no cast to void). */
  68. # pragma warn - 8019
  69. # endif
  70. #endif
  71. /* MSVC 6.0 in release mode will warn about code it produces with its
  72. optimizer. Disable the warnings specifically for this
  73. configuration. Real warnings will be revealed by a debug build or
  74. by other compilers. */
  75. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE_BOGUS)
  76. # if defined(_MSC_VER) && (_MSC_VER < 1300) && defined(NDEBUG)
  77. # pragma warning(disable : 4701) /* Variable may be used uninitialized. */
  78. # pragma warning(disable : 4702) /* Unreachable code. */
  79. # endif
  80. #endif
  81. #endif