Update Copyright years for files modified in 2010.
[official-gcc.git] / libstdc++-v3 / config / os / mingw32 / os_defines.h
blobc483a92e6daaf0f6a169e7709abf440918783d82
1 // Specific definitions for generic platforms -*- C++ -*-
3 // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
4 // 2009, 2010 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.
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.
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.
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/>.
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}
31 #ifndef _GLIBCXX_OS_DEFINES
32 # define _GLIBCXX_OS_DEFINES
34 // System-specific #define, typedefs, corrections, etc, go here. This
35 // file will come before all others.
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
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
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
55 #define _GLIBCXX_PSEUDO_VISIBILITY(V) _GLIBCXX_PSEUDO_VISIBILITY_ ## V
57 // See libstdc++/20806.
58 #define _GLIBCXX_HAVE_DOS_BASED_FILESYSTEM 1
60 // See libstdc++/37522.
61 #define _GLIBCXX_HAVE_BROKEN_VSWPRINTF 1
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
68 #endif