blob: 4238be95af8bf7e4091f0317c6688a80c1d44626 [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001// (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
11// See http://www.boost.org for most recent version.
12
13// Comeau C++ compiler setup:
14
Jeff Thompson2277ce52013-08-01 17:34:11 -070015#include "ndnboost/config/compiler/common_edg.hpp"
Jeff Thompsonf7d49942013-08-01 16:47:40 -070016
17#if (__COMO_VERSION__ <= 4245)
18
19# if defined(_MSC_VER) && _MSC_VER <= 1300
20# if _MSC_VER > 100
21 // only set this in non-strict mode:
Jeff Thompson3d613fd2013-10-15 15:39:04 -070022# define NDNBOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
Jeff Thompsonf7d49942013-08-01 16:47:40 -070023# endif
24# endif
25
26// Void returns don't work when emulating VC 6 (Peter Dimov)
27// TODO: look up if this doesn't apply to the whole 12xx range
28# if defined(_MSC_VER) && (_MSC_VER < 1300)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070029# define NDNBOOST_NO_VOID_RETURNS
Jeff Thompsonf7d49942013-08-01 16:47:40 -070030# endif
31
32#endif // version 4245
33
34//
35// enable __int64 support in VC emulation mode
36//
37# if defined(_MSC_VER) && (_MSC_VER >= 1200)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070038# define NDNBOOST_HAS_MS_INT64
Jeff Thompsonf7d49942013-08-01 16:47:40 -070039# endif
40
Jeff Thompson3d613fd2013-10-15 15:39:04 -070041#define NDNBOOST_COMPILER "Comeau compiler version " NDNBOOST_STRINGIZE(__COMO_VERSION__)
Jeff Thompsonf7d49942013-08-01 16:47:40 -070042
43//
44// versions check:
45// we don't know Comeau prior to version 4245:
46#if __COMO_VERSION__ < 4245
47# error "Compiler not configured - please reconfigure"
48#endif
49//
50// last known and checked version is 4245:
51#if (__COMO_VERSION__ > 4245)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070052# if defined(NDNBOOST_ASSERT_CONFIG)
Jeff Thompsonf7d49942013-08-01 16:47:40 -070053# error "Unknown compiler version - please run the configure tests and report the results"
54# endif
55#endif
56
57
58
59