]> git.lyx.org Git - lyx.git/blob - boost/boost/config/user.hpp
update from Boost CVS
[lyx.git] / boost / boost / config / user.hpp
1 //  boost/config/user.hpp  ---------------------------------------------------//
2
3 //  (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
4 //  distribute this software is granted provided this copyright notice appears
5 //  in all copies. This software is provided "as is" without express or implied
6 //  warranty, and with no claim as to its suitability for any purpose.
7
8 //  Do not check in modified versions of this file,
9 //  This file may be customized by the end user, but not by boost.
10
11 //
12 //  Use this file to define a site and compiler specific
13 //  configuration policy:
14 //
15
16 // define this to locate a compiler config file:
17 // #define BOOST_COMPILER_CONFIG <myheader>
18
19 // define this to locate a stdlib config file:
20 // #define BOOST_STDLIB_CONFIG   <myheader>
21
22 // define this to locate a platform config file:
23 // #define BOOST_PLATFORM_CONFIG <myheader>
24
25 // define this to disable compiler config,
26 // use if your compiler config has nothing to set:
27 // #define BOOST_NO_COMPILER_CONFIG
28
29 // define this to disable stdlib config,
30 // use if your stdlib config has nothing to set:
31 // #define BOOST_NO_STDLIB_CONFIG
32
33 // define this to disable platform config,
34 // use if your platform config has nothing to set:
35 // #define BOOST_NO_PLATFORM_CONFIG
36
37 // define this to disable all config options,
38 // excluding the user config.  Use if your
39 // setup is fully ISO compliant, and has no
40 // useful extensions, or for autoconf generated
41 // setups:
42 // #define BOOST_NO_CONFIG
43
44 // define this to make the config "optimistic"
45 // about unknown compiler versions.  Normally
46 // unknown compiler versions are assumed to have
47 // all the defects of the last known version, however
48 // setting this flag, causes the config to assume
49 // that unknown compiler versions are fully conformant
50 // with the standard:
51 // #define BOOST_STRICT_CONFIG
52
53 // define this to cause the config to halt compilation
54 // with an #error if it encounters anything unknown --
55 // either an unknown compiler version or an unknown
56 // compiler/platform/library:
57 // #define BOOST_ASSERT_CONFIG
58
59
60 // define if you want to disable threading support, even
61 // when available:
62 #define BOOST_DISABLE_THREADS 1
63
64 // define when you want to disable Win32 specific features
65 // even when available:
66 // #define BOOST_DISABLE_WIN32
67
68
69 #define BOOST_NO_EXCEPTIONS 1
70 #define BOOST_NO_WREGEX 1
71 #define BOOST_NO_WSTRING 1
72
73 #ifdef BOOST_NO_EXCEPTIONS
74 //
75 // If there are no exceptions then we must report critical-errors
76 // the only way we know how; by terminating.
77 //
78 //#ifdef __BORLANDC__
79 // <cstdio> seems not to make stderr usable with Borland:
80 #include <cstdio>
81 //#endif
82 #  define BOOST_NOEH_ASSERT(x)\
83 if(0 == (x))\
84 {\
85    std::fprintf(stderr, "Error: critical boost failure in \"%s\"", #x);\
86    std::abort();\
87 }
88 #else
89 //
90 // With exceptions then error handling is taken care of and
91 // there is no need for these checks:
92 //
93 #  define BOOST_NOEH_ASSERT(x)
94 #endif