1 |
424 |
jeremybenn |
// Specific definitions for generic platforms -*- C++ -*-
|
2 |
|
|
|
3 |
|
|
// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
4 |
|
|
// 2009 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 os_defines.h
|
27 |
|
|
* This is an internal header file, included by other library headers.
|
28 |
|
|
* You should not attempt to use it directly.
|
29 |
|
|
*/
|
30 |
|
|
|
31 |
|
|
#ifndef _GLIBCXX_OS_DEFINES
|
32 |
|
|
# define _GLIBCXX_OS_DEFINES
|
33 |
|
|
|
34 |
|
|
// System-specific #define, typedefs, corrections, etc, go here. This
|
35 |
|
|
// file will come before all others.
|
36 |
|
|
|
37 |
|
|
// Define as 0, if you want, to enable inlining of gthread functions.
|
38 |
|
|
// By default, don't pollute libstdc++ with win32api names.
|
39 |
|
|
#if !defined (__GTHREAD_HIDE_WIN32API)
|
40 |
|
|
# define __GTHREAD_HIDE_WIN32API 1
|
41 |
|
|
#endif
|
42 |
|
|
|
43 |
|
|
// Don't let win32api windef.h define min and max as macros
|
44 |
|
|
// if included after c++config.h.
|
45 |
|
|
#undef NOMINMAX
|
46 |
|
|
#define NOMINMAX 1
|
47 |
|
|
|
48 |
|
|
#if defined (_GLIBCXX_DLL)
|
49 |
|
|
#define _GLIBCXX_PSEUDO_VISIBILITY_default __attribute__ ((__dllimport__))
|
50 |
|
|
#else
|
51 |
|
|
#define _GLIBCXX_PSEUDO_VISIBILITY_default
|
52 |
|
|
#endif
|
53 |
|
|
#define _GLIBCXX_PSEUDO_VISIBILITY_hidden
|
54 |
|
|
|
55 |
|
|
#define _GLIBCXX_PSEUDO_VISIBILITY(V) _GLIBCXX_PSEUDO_VISIBILITY_ ## V
|
56 |
|
|
|
57 |
|
|
// See libstdc++/20806.
|
58 |
|
|
#define _GLIBCXX_HAVE_DOS_BASED_FILESYSTEM 1
|
59 |
|
|
|
60 |
|
|
// See libstdc++/37522.
|
61 |
|
|
#define _GLIBCXX_HAVE_BROKEN_VSWPRINTF 1
|
62 |
|
|
|
63 |
|
|
#endif
|