comeau.hpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // (C) Copyright John Maddock 2001.
  2. // (C) Copyright Douglas Gregor 2001.
  3. // (C) Copyright Peter Dimov 2001.
  4. // (C) Copyright Aleksey Gurtovoy 2003.
  5. // (C) Copyright Beman Dawes 2003.
  6. // (C) Copyright Jens Maurer 2003.
  7. // Use, modification and distribution are subject to the
  8. // Boost Software License, Version 1.0. (See accompanying file
  9. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  10. // See http://www.boost.org for most recent version.
  11. // Comeau C++ compiler setup:
  12. #include <boost/config/compiler/common_edg.hpp>
  13. #if (__COMO_VERSION__ <= 4245)
  14. # if defined(_MSC_VER) && _MSC_VER <= 1300
  15. # if _MSC_VER > 100
  16. // only set this in non-strict mode:
  17. # define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
  18. # endif
  19. # endif
  20. // Void returns don't work when emulating VC 6 (Peter Dimov)
  21. // TODO: look up if this doesn't apply to the whole 12xx range
  22. # if defined(_MSC_VER) && (_MSC_VER < 1300)
  23. # define BOOST_NO_VOID_RETURNS
  24. # endif
  25. #endif // version 4245
  26. //
  27. // enable __int64 support in VC emulation mode
  28. //
  29. # if defined(_MSC_VER) && (_MSC_VER >= 1200)
  30. # define BOOST_HAS_MS_INT64
  31. # endif
  32. #define BOOST_COMPILER "Comeau compiler version " BOOST_STRINGIZE(__COMO_VERSION__)
  33. //
  34. // versions check:
  35. // we don't know Comeau prior to version 4245:
  36. #if __COMO_VERSION__ < 4245
  37. # error "Compiler not configured - please reconfigure"
  38. #endif
  39. //
  40. // last known and checked version is 4245:
  41. #if (__COMO_VERSION__ > 4245)
  42. # if defined(BOOST_ASSERT_CONFIG)
  43. # error "boost: Unknown compiler version - please run the configure tests and report the results"
  44. # endif
  45. #endif