c++config revision 132720
197403Sobrien// Predefined symbols and macros -*- C++ -*-
297403Sobrien
3132720Skan// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4117397Skan// Free Software Foundation, Inc.
597403Sobrien//
697403Sobrien// This file is part of the GNU ISO C++ Library.  This library is free
797403Sobrien// software; you can redistribute it and/or modify it under the
897403Sobrien// terms of the GNU General Public License as published by the
997403Sobrien// Free Software Foundation; either version 2, or (at your option)
1097403Sobrien// any later version.
1197403Sobrien
1297403Sobrien// This library is distributed in the hope that it will be useful,
1397403Sobrien// but WITHOUT ANY WARRANTY; without even the implied warranty of
1497403Sobrien// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1597403Sobrien// GNU General Public License for more details.
1697403Sobrien
1797403Sobrien// You should have received a copy of the GNU General Public License along
1897403Sobrien// with this library; see the file COPYING.  If not, write to the Free
1997403Sobrien// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
2097403Sobrien// USA.
2197403Sobrien
2297403Sobrien// As a special exception, you may use this file as part of a free software
2397403Sobrien// library without restriction.  Specifically, if other files instantiate
2497403Sobrien// templates or use macros or inline functions from this file, or you compile
2597403Sobrien// this file and link it with other files to produce an executable, this
2697403Sobrien// file does not by itself cause the resulting executable to be covered by
2797403Sobrien// the GNU General Public License.  This exception does not however
2897403Sobrien// invalidate any other reasons why the executable file might be covered by
2997403Sobrien// the GNU General Public License.
3097403Sobrien
31132720Skan#ifndef _CXXCONFIG
32132720Skan#define _CXXCONFIG 1
3397403Sobrien
3497403Sobrien// Pick up any OS-specific definitions.
3597403Sobrien#include <bits/os_defines.h>
3697403Sobrien
3797403Sobrien// The current version of the C++ library in compressed ISO date format.
38132720Skan#define __GLIBCXX__ 20040728
3997403Sobrien
40132720Skan// Allow use of "export template." This is currently not a feature
41132720Skan// that g++ supports.
42132720Skan// #define _GLIBCXX_EXPORT_TEMPLATE 1
4397403Sobrien
44117397Skan// Allow use of the GNU syntax extension, "extern template." This
45117397Skan// extension is fully documented in the g++ manual, but in a nutshell,
46117397Skan// it inhibits all implicit instantiations and is used throughout the
47117397Skan// library to avoid multiple weak definitions for required types that
48117397Skan// are already explicitly instantiated in the library binary. This
49117397Skan// substantially reduces the binary size of resulting executables.
50132720Skan#ifndef _GLIBCXX_EXTERN_TEMPLATE
51132720Skan# define _GLIBCXX_EXTERN_TEMPLATE 1
52117397Skan#endif
53117397Skan
54132720Skan// Debug mode support. Debug mode basic_string is not allowed to be
55132720Skan// associated with std, because of locale and exception link
56132720Skan// dependence.
57132720Skannamespace __gnu_debug_def { }
5897403Sobrien
59132720Skannamespace __gnu_debug 
60132720Skan{ 
61132720Skan  using namespace __gnu_debug_def;
62132720Skan}
6397403Sobrien
64132720Skan#ifdef _GLIBCXX_DEBUG
65132720Skan# define _GLIBCXX_STD __gnu_norm
66132720Skannamespace __gnu_norm 
67132720Skan{ 
68132720Skan  using namespace std; 
69132720Skan}
70132720Skannamespace std
71132720Skan{
72132720Skan  using namespace __gnu_debug_def __attribute__ ((strong));
73132720Skan}
74132720Skan#else
75132720Skan# define _GLIBCXX_STD std
76132720Skan#endif
77107606Sobrien
7897403Sobrien
79132720Skan// The remainder of the prewritten config is automatic; all the
80132720Skan// user hooks are listed above.
8197403Sobrien
82117397Skan// Create a boolean flag to be used to determine if --fast-math is set.
83117397Skan#ifdef __FAST_MATH__
84132720Skan# define _GLIBCXX_FAST_MATH 1
85117397Skan#else
86132720Skan# define _GLIBCXX_FAST_MATH 0
87117397Skan#endif
88117397Skan
89132720Skan// This marks string literals in header files to be extracted for eventual
90132720Skan// translation.  It is primarily used for messages in thrown exceptions; see
91132720Skan// src/functexcept.cc.  We use __N because the more traditional _N is used
92132720Skan// for something else under certain OSes (see BADNAMES).
93132720Skan#define __N(msgid)     (msgid)
9497403Sobrien
9597403Sobrien// End of prewritten config; the discovered settings follow.
96