Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPPConfig.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #/* **************************************************************************
17 # * *
18 # * (C) Copyright Paul Mensonides 2002.
19 # * Distributed under the Boost Software License, Version 1.0. (See
20 # * accompanying file LICENSE_1_0.txt or copy at
21 # * http://www.boost.org/LICENSE_1_0.txt)
22 # * *
23 # ************************************************************************** */
24 #
25 #/* See http://www.boost.org for most recent version. */
26 #
27 #ifndef MITK_PREPROCESSOR_CONFIG_CONFIG_HPP
28 #define MITK_PREPROCESSOR_CONFIG_CONFIG_HPP
29 #
30 #/* MITK_PP_CONFIG_FLAGS */
31 #
32 #define MITK_PP_CONFIG_STRICT() 0x0001
33 #define MITK_PP_CONFIG_IDEAL() 0x0002
34 #
35 #define MITK_PP_CONFIG_MSVC() 0x0004
36 #define MITK_PP_CONFIG_MWCC() 0x0008
37 #define MITK_PP_CONFIG_BCC() 0x0010
38 #define MITK_PP_CONFIG_EDG() 0x0020
39 #define MITK_PP_CONFIG_DMC() 0x0040
40 #
41 #ifndef MITK_PP_CONFIG_FLAGS
42 #if defined(__GCCXML__)
43 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_STRICT())
44 #elif defined(__WAVE__)
45 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_STRICT())
46 #elif defined(__MWERKS__) && __MWERKS__ >= 0x3200
47 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_STRICT())
48 #elif defined(__EDG__) || defined(__EDG_VERSION__)
49 #if defined(_MSC_VER) && __EDG_VERSION__ >= 308
50 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_MSVC())
51 #else
52 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_EDG() | MITK_PP_CONFIG_STRICT())
53 #endif
54 #elif defined(__MWERKS__)
55 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_MWCC())
56 #elif defined(__DMC__)
57 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_DMC())
58 #elif defined(__BORLANDC__) && __BORLANDC__ >= 0x581
59 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_STRICT())
60 #elif defined(__BORLANDC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__SUNPRO_CC)
61 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_BCC())
62 #elif defined(_MSC_VER)
63 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_MSVC())
64 #else
65 #define MITK_PP_CONFIG_FLAGS() (MITK_PP_CONFIG_STRICT())
66 #endif
67 #endif
68 #
69 #/* MITK_PP_CONFIG_EXTENDED_LINE_INFO */
70 #
71 #ifndef MITK_PP_CONFIG_EXTENDED_LINE_INFO
72 #define MITK_PP_CONFIG_EXTENDED_LINE_INFO 0
73 #endif
74 #
75 #/* MITK_PP_CONFIG_ERRORS */
76 #
77 #ifndef MITK_PP_CONFIG_ERRORS
78 #ifdef NDEBUG
79 #define MITK_PP_CONFIG_ERRORS 0
80 #else
81 #define MITK_PP_CONFIG_ERRORS 1
82 #endif
83 #endif
84 #
85 #endif