OSDN Git Service

f41160f60558f17cb38d5637c8b49d8d39a1813b
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / config / os / gnu-linux / os_defines.h
1 // Specific definitions for GNU/Linux  -*- C++ -*-
2
3 // Copyright (C) 2000, 2001, 2002, 2003, 2009, 2010, 2012
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 3, 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 // Under Section 7 of GPL version 3, you are granted additional
18 // permissions described in the GCC Runtime Library Exception, version
19 // 3.1, as published by the Free Software Foundation.
20
21 // You should have received a copy of the GNU General Public License and
22 // a copy of the GCC Runtime Library Exception along with this program;
23 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
24 // <http://www.gnu.org/licenses/>.
25
26 /** @file bits/os_defines.h
27  *  This is an internal header file, included by other library headers.
28  *  Do not attempt to use it directly. @headername{iosfwd}
29  */
30
31 #ifndef _GLIBCXX_OS_DEFINES
32 #define _GLIBCXX_OS_DEFINES 1
33
34 // System-specific #define, typedefs, corrections, etc, go here.  This
35 // file will come before all others.
36
37 // This keeps isanum, et al from being propagated as macros.
38 #define __NO_CTYPE 1
39
40 #include <features.h>
41
42 // Provide a declaration for the possibly deprecated gets function, as
43 // glibc 2.15 and later does not declare gets for ISO C11 when
44 // __GNU_SOURCE is defined.
45 #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
46 # undef _GLIBCXX_HAVE_GETS
47 #endif
48
49 #if defined(__hppa__) && defined(__GXX_EXPERIMENTAL_CXX0X__)
50 # define _GTHREAD_USE_MUTEX_INIT_FUNC
51 # define _GTHREAD_USE_RECURSIVE_MUTEX_INIT_FUNC
52 # define _GTHREAD_USE_COND_INIT_FUNC
53 #endif
54
55 #endif