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