OSDN Git Service

040aab27f22f493b1491afa385881065ff5be4e8
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / include / bits / c++config
1 // Predefined symbols and macros -*- C++ -*-
2
3 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 // Free Software Foundation, Inc.
5 //
6 // This file is part of the GNU ISO C++ Library.  This library is free
7 // software; you can redistribute it and/or modify it under the
8 // terms of the GNU General Public License as published by the
9 // Free Software Foundation; either version 2, or (at your option)
10 // any later version.
11
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 // GNU General Public License for more details.
16
17 // You should have received a copy of the GNU General Public License along
18 // with this library; see the file COPYING.  If not, write to the Free
19 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20 // USA.
21
22 // As a special exception, you may use this file as part of a free software
23 // library without restriction.  Specifically, if other files instantiate
24 // templates or use macros or inline functions from this file, or you compile
25 // this file and link it with other files to produce an executable, this
26 // file does not by itself cause the resulting executable to be covered by
27 // the GNU General Public License.  This exception does not however
28 // invalidate any other reasons why the executable file might be covered by
29 // the GNU General Public License.
30
31 #ifndef _CXXCONFIG
32 #define _CXXCONFIG 1
33
34 // Pick up any OS-specific definitions.
35 #include <bits/os_defines.h>
36
37 // The current version of the C++ library in compressed ISO date format.
38 #define __GLIBCXX__ 20031017
39
40 // Allow use of "export template." This is currently not a feature
41 // that g++ supports.
42 // #define _GLIBCXX_EXPORT_TEMPLATE 1
43
44 // Allow use of the GNU syntax extension, "extern template." This
45 // extension is fully documented in the g++ manual, but in a nutshell,
46 // it inhibits all implicit instantiations and is used throughout the
47 // library to avoid multiple weak definitions for required types that
48 // are already explicitly instantiated in the library binary. This
49 // substantially reduces the binary size of resulting executables.
50 #ifndef _GLIBCXX_EXTERN_TEMPLATE
51 # define _GLIBCXX_EXTERN_TEMPLATE 1
52 #endif
53
54 // To enable older, ARM-style iostreams and other anachronisms use this.
55 //#define _GLIBCXX_DEPRECATED 1
56
57 // Use corrected code from the committee library group's issues list.
58 //#define _GLIBCXX_RESOLVE_LIB_DEFECTS 1
59
60 // The remainder of the prewritten config is automatic; all the
61 // user hooks are listed above.
62
63 // Create a boolean flag to be used to determine if --fast-math is set.
64 #ifdef __FAST_MATH__
65 # define _GLIBCXX_FAST_MATH 1
66 #else
67 # define _GLIBCXX_FAST_MATH 0
68 #endif
69
70 // This marks string literals in header files to be extracted for eventual
71 // translation.  It is primarily used for messages in thrown exceptions; see
72 // src/functexcept.cc.  We use __N because the more traditional _N is used
73 // for something else under certain OSes (see BADNAMES).
74 #define __N(msgid)     (msgid)
75
76 // End of prewritten config; the discovered settings follow.