121217Swollman// -*- C++ -*- compatibility header.
22742Swollman
32742Swollman// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
42742Swollman//
52742Swollman// This file is part of the GNU ISO C++ Library.  This library is free
62742Swollman// software; you can redistribute it and/or modify it under the
72742Swollman// terms of the GNU General Public License as published by the
82742Swollman// Free Software Foundation; either version 3, or (at your option)
92742Swollman// any later version.
102742Swollman
112742Swollman// This library is distributed in the hope that it will be useful,
122742Swollman// but WITHOUT ANY WARRANTY; without even the implied warranty of
132742Swollman// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
142742Swollman// GNU General Public License for more details.
152742Swollman
162742Swollman// Under Section 7 of GPL version 3, you are granted additional
172742Swollman// permissions described in the GCC Runtime Library Exception, version
182742Swollman// 3.1, as published by the Free Software Foundation.
192742Swollman
202742Swollman// You should have received a copy of the GNU General Public License and
212742Swollman// a copy of the GCC Runtime Library Exception along with this program;
222742Swollman// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
239908Swollman// <http://www.gnu.org/licenses/>.
242742Swollman
252742Swollman/** @file stdint.h
262742Swollman *  This is a Standard C++ Library header.
279908Swollman */
282742Swollman
292742Swollman#ifndef _GLIBCXX_STDINT_H
3014343Swollman#define _GLIBCXX_STDINT_H 1
3114343Swollman
3214343Swollman#pragma GCC system_header
3314343Swollman
3414343Swollman#include <bits/c++config.h>
3514343Swollman
362742Swollman#ifdef __GXX_EXPERIMENTAL_CXX0X__
379908Swollman
3820094Swollman// For 8.22.1/1 (see C99, Notes 219, 220, 222)
3920094Swollman# if _GLIBCXX_HAVE_STDINT_H
4020094Swollman#  ifndef __STDC_LIMIT_MACROS
4120094Swollman#   define _UNDEF__STDC_LIMIT_MACROS
4220094Swollman#   define __STDC_LIMIT_MACROS
4320094Swollman#  endif
4420094Swollman#  ifndef __STDC_CONSTANT_MACROS
4520094Swollman#   define _UNDEF__STDC_CONSTANT_MACROS
4620094Swollman#   define __STDC_CONSTANT_MACROS
4720094Swollman#  endif
4820094Swollman#  include_next <stdint.h>
4920094Swollman#  ifdef _UNDEF__STDC_LIMIT_MACROS
5020094Swollman#   undef __STDC_LIMIT_MACROS
5121217Swollman#   undef _UNDEF__STDC_LIMIT_MACROS
5221217Swollman#  endif
5320094Swollman#  ifdef _UNDEF__STDC_CONSTANT_MACROS
5420094Swollman#   undef __STDC_CONSTANT_MACROS
552742Swollman#   undef _UNDEF__STDC_CONSTANT_MACROS
562742Swollman#  endif
5714343Swollman# endif
5814343Swollman
5921217Swollman# if defined(_GLIBCXX_INCLUDE_AS_TR1)
6020094Swollman#  error C++0x header cannot be included from TR1 header
6120094Swollman# endif
6220094Swollman# if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
6320094Swollman#  include <tr1_impl/cstdint>
6420094Swollman# else
652742Swollman#  define _GLIBCXX_INCLUDE_AS_CXX0X
669908Swollman#  define _GLIBCXX_BEGIN_NAMESPACE_TR1
672742Swollman#  define _GLIBCXX_END_NAMESPACE_TR1
6814343Swollman#  define _GLIBCXX_TR1
6914343Swollman#  include <tr1_impl/cstdint>
7014343Swollman#  undef _GLIBCXX_TR1
7114343Swollman#  undef _GLIBCXX_END_NAMESPACE_TR1
7214343Swollman#  undef _GLIBCXX_BEGIN_NAMESPACE_TR1
7314343Swollman#  undef _GLIBCXX_INCLUDE_AS_CXX0X
7414343Swollman# endif
7514343Swollman
7614343Swollman#else
772742Swollman
782742Swollman# if _GLIBCXX_HAVE_STDINT_H
792742Swollman#  include_next <stdint.h>
802742Swollman# endif
8114343Swollman
822742Swollman#endif // __GXX_EXPERIMENTAL_CXX0X__
832742Swollman
849908Swollman#endif // _GLIBCXX_STDINT_H
852742Swollman