]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/config/os/mingw32/os_defines.h
*: Use headername alias to associate private includes to public includes.
[thirdparty/gcc.git] / libstdc++-v3 / config / os / mingw32 / os_defines.h
CommitLineData
944effb6
DS
1// Specific definitions for generic platforms -*- C++ -*-
2
748086b7
JJ
3// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
4// 2009 Free Software Foundation, Inc.
944effb6
DS
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
748086b7 9// Free Software Foundation; either version 3, or (at your option)
944effb6
DS
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
748086b7
JJ
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/>.
944effb6 25
f910786b 26/** @file bits/os_defines.h
143c27b0 27 * This is an internal header file, included by other library headers.
f910786b 28 * Do not attempt to use it directly. @headername{iosfwd}
143c27b0 29 */
944effb6 30
3d7c150e
BK
31#ifndef _GLIBCXX_OS_DEFINES
32# define _GLIBCXX_OS_DEFINES
944effb6
DS
33
34// System-specific #define, typedefs, corrections, etc, go here. This
35// file will come before all others.
36
81888fcd
DS
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
21fe0282 44// if included after c++config.h.
81888fcd
DS
45#undef NOMINMAX
46#define NOMINMAX 1
47
f7e413e2
DK
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
1ae48358
DS
57// See libstdc++/20806.
58#define _GLIBCXX_HAVE_DOS_BASED_FILESYSTEM 1
59
83b83ae9
PC
60// See libstdc++/37522.
61#define _GLIBCXX_HAVE_BROKEN_VSWPRINTF 1
62
266afdd6
KT
63// See libstdc++/43738
64// On native windows targets there is no ioctl function. And the existing
65// ioctlsocket function doesn't work for normal file-descriptors.
66#define _GLIBCXX_NO_IOCTL 1
67
944effb6 68#endif