* config/avr/avr.md ("mcu_enhanced"): New attribute.
[official-gcc.git] / libstdc++-v3 / shadow / time.h
blobdb241651d9c533a0f63faecf8c35a7b578e2aefd
1 // -*- C++ -*- header wrapper.
3 // Copyright (C) 1997-1999 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 2, or (at your option)
9 // any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING. If not, write to the Free
18 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19 // USA.
21 // As a special exception, you may use this file as part of a free software
22 // library without restriction. Specifically, if other files instantiate
23 // templates or use macros or inline functions from this file, or you compile
24 // this file and link it with other files to produce an executable, this
25 // file does not by itself cause the resulting executable to be covered by
26 // the GNU General Public License. This exception does not however
27 // invalidate any other reasons why the executable file might be covered by
28 // the GNU General Public License.
31 #ifndef _INCLUDED_CPP_TIME_H_
33 // turn off glibc-2.0 weirdness. Other systems define similar foolishness
34 #undef __need_time_t
35 #undef __need_clock_t
36 #undef __need_timespec
38 # undef _SHADOW_NAME
39 # define _SHADOW_NAME <ctime>
40 # include <bits/generic_shadow.h>
41 # undef _SHADOW_NAME
43 # ifndef _IN_C_LEGACY_
44 using ::std::size_t; /* handled in <cstddef> */
45 using ::std::clock_t;
46 using ::std::time_t;
47 using ::std::tm;
48 using ::std::clock;
49 using ::std::difftime;
50 using ::std::mktime;
51 using ::std::time;
52 using ::std::asctime;
53 using ::std::ctime;
54 using ::std::gmtime;
55 using ::std::localtime;
56 using ::std::strftime;
57 # define _INCLUDED_CPP_TIME_H_ 1
58 # endif
60 #endif /* _INCLUDED_CPP_TIME_H_ */