Configure.h.in 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*=========================================================================
  2. Program: KWSys - Kitware System Library
  3. Module: $RCSfile$
  4. Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
  5. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even
  7. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  8. PURPOSE. See the above copyright notices for more information.
  9. =========================================================================*/
  10. #ifndef @KWSYS_NAMESPACE@_Configure_h
  11. #define @KWSYS_NAMESPACE@_Configure_h
  12. /* If we are building a kwsys .c or .cxx file, let it use the kwsys
  13. namespace. When not building a kwsys source file these macros are
  14. temporarily defined inside the headers that use them. */
  15. #if defined(KWSYS_NAMESPACE)
  16. # define kwsys_ns(x) @KWSYS_NAMESPACE@##x
  17. # define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT
  18. #endif
  19. /* Setup the export macro. */
  20. #if defined(_WIN32) && @KWSYS_BUILD_SHARED@
  21. # if defined(@KWSYS_NAMESPACE@_EXPORTS)
  22. # define @KWSYS_NAMESPACE@_EXPORT __declspec(dllexport)
  23. # else
  24. # define @KWSYS_NAMESPACE@_EXPORT __declspec(dllimport)
  25. # endif
  26. #else
  27. # define @KWSYS_NAMESPACE@_EXPORT
  28. #endif
  29. /* Enable warnings that are off by default but are useful. */
  30. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_ENABLE)
  31. # if defined(_MSC_VER)
  32. # pragma warning ( default : 4263 ) /* no override, call convention differs */
  33. # endif
  34. #endif
  35. /* Disable warnings that are on by default but occur in valid code. */
  36. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE)
  37. # if defined(_MSC_VER)
  38. # pragma warning (disable: 4097) /* typedef is synonym for class */
  39. # pragma warning (disable: 4127) /* conditional expression is constant */
  40. # pragma warning (disable: 4244) /* possible loss in conversion */
  41. # pragma warning (disable: 4251) /* missing DLL-interface */
  42. # pragma warning (disable: 4305) /* truncation from type1 to type2 */
  43. # pragma warning (disable: 4309) /* truncation of constant value */
  44. # pragma warning (disable: 4514) /* unreferenced inline function */
  45. # pragma warning (disable: 4706) /* assignment in conditional expression */
  46. # pragma warning (disable: 4710) /* function not inlined */
  47. # pragma warning (disable: 4786) /* identifier truncated in debug info */
  48. # endif
  49. #endif
  50. /* MSVC 6.0 in release mode will warn about code it produces with its
  51. optimizer. Disable the warnings specifically for this
  52. configuration. Real warnings will be revealed by a debug build or
  53. by other compilers. */
  54. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE_BOGUS)
  55. # if defined(_MSC_VER) && (_MSC_VER < 1300) && defined(NDEBUG)
  56. # pragma warning ( disable : 4701 ) /* Variable may be used uninitialized. */
  57. # pragma warning ( disable : 4702 ) /* Unreachable code. */
  58. # endif
  59. #endif
  60. #endif