c++config revision 97403
197403Sobrien// Predefined symbols and macros -*- C++ -*- 297403Sobrien 397403Sobrien// Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. 497403Sobrien// 597403Sobrien// This file is part of the GNU ISO C++ Library. This library is free 697403Sobrien// software; you can redistribute it and/or modify it under the 797403Sobrien// terms of the GNU General Public License as published by the 897403Sobrien// Free Software Foundation; either version 2, or (at your option) 997403Sobrien// any later version. 1097403Sobrien 1197403Sobrien// This library is distributed in the hope that it will be useful, 1297403Sobrien// but WITHOUT ANY WARRANTY; without even the implied warranty of 1397403Sobrien// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1497403Sobrien// GNU General Public License for more details. 1597403Sobrien 1697403Sobrien// You should have received a copy of the GNU General Public License along 1797403Sobrien// with this library; see the file COPYING. If not, write to the Free 1897403Sobrien// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, 1997403Sobrien// USA. 2097403Sobrien 2197403Sobrien// As a special exception, you may use this file as part of a free software 2297403Sobrien// library without restriction. Specifically, if other files instantiate 2397403Sobrien// templates or use macros or inline functions from this file, or you compile 2497403Sobrien// this file and link it with other files to produce an executable, this 2597403Sobrien// file does not by itself cause the resulting executable to be covered by 2697403Sobrien// the GNU General Public License. This exception does not however 2797403Sobrien// invalidate any other reasons why the executable file might be covered by 2897403Sobrien// the GNU General Public License. 2997403Sobrien 3097403Sobrien#ifndef _CPP_CPPCONFIG 3197403Sobrien#define _CPP_CPPCONFIG 1 3297403Sobrien 3397403Sobrien// Pick up any OS-specific definitions. 3497403Sobrien#include <bits/os_defines.h> 3597403Sobrien 3697403Sobrien// The current version of the C++ library in compressed ISO date format. 3797403Sobrien#define __GLIBCPP__ 20020513 3897403Sobrien 3997403Sobrien// This is necessary until GCC supports separate template 4097403Sobrien// compilation. 4197403Sobrien#define _GLIBCPP_NO_TEMPLATE_EXPORT 1 4297403Sobrien 4397403Sobrien// This is a hack around not having either pre-compiled headers or 4497403Sobrien// export compilation. If defined, the io, string, and valarray 4597403Sobrien// headers will include all the necessary bits. If not defined, the 4697403Sobrien// implementation optimizes the headers for the most commonly-used 4797403Sobrien// types. For the io library, this means that larger, out-of-line 4897403Sobrien// member functions are only declared, and definitions are not parsed 4997403Sobrien// by the compiler, but instead instantiated into the library binary. 5097403Sobrien#define _GLIBCPP_FULLY_COMPLIANT_HEADERS 1 5197403Sobrien 5297403Sobrien// To enable older, ARM-style iostreams and other anachronisms use this. 5397403Sobrien//#define _GLIBCPP_DEPRECATED 1 5497403Sobrien 5597403Sobrien// Use corrected code from the committee library group's issues list. 5697403Sobrien#define _GLIBCPP_RESOLVE_LIB_DEFECTS 1 5797403Sobrien 5897403Sobrien// In those parts of the standard C++ library that use a mutex instead 5997403Sobrien// of a spin-lock, we now unconditionally use GCC's gthr.h mutex 6097403Sobrien// abstraction layer. All support to directly map to various 6197403Sobrien// threading models has been removed. Note: gthr.h may well map to 6297403Sobrien// gthr-single.h which is a correct way to express no threads support 6397403Sobrien// in gcc. Support for the undocumented _NOTHREADS has been removed. 6497403Sobrien 6597403Sobrien// Default to the typically high-speed, pool-based allocator (as 6697403Sobrien// libstdc++-v2) instead of the malloc-based allocator (libstdc++-v3 6797403Sobrien// snapshots). See libstdc++-v3/docs/html/17_intro/howto.html for 6897403Sobrien// details on why you don't want to override this setting. Ensure 6997403Sobrien// that threads are properly configured on your platform before 7097403Sobrien// assigning blame to the STL container-memory allocator. After doing 7197403Sobrien// so, please report any possible issues to libstdc++@gcc.gnu.org . 7297403Sobrien// Do not blindly #define __USE_MALLOC here or on the command line. 7397403Sobrien 7497403Sobrien// The remainder of the prewritten config is mostly automatic; all the 7597403Sobrien// user hooks are listed above. 7697403Sobrien 7797403Sobrien// End of prewritten config; the discovered settings follow. 78