* cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
[gnulib.git] / lib / inttypes.h
1 /* Copyright (C) 2006 Free Software Foundation, Inc.
2    Written by Derek Price & Paul Eggert.
3    This file is part of gnulib.
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU Lesser General Public License as published by
7    the Free Software Foundation; either version 2.1, or (at your option)
8    any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU Lesser General Public License
16    along with this program; if not, write to the Free Software Foundation,
17    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
18
19 #ifndef INTTYPES_H
20 #define INTTYPES_H
21
22 /*
23  * A wrapper for the ISO C 99 <inttypes.h>.
24  * <http://www.opengroup.org/susv3xbd/inttypes.h.html>
25  *
26  * Currently, if the system <inttypes.h> is missing or not C99 compliant, then
27  * this header may only provide the required <stdint.h> (which may be the
28  * *almost* C99 compliant one from GNULIB) and prototypes for the strtoimax and
29  * strtoumax functions.
30  */
31
32 #if HAVE_INTTYPES_H
33 # if HAVE_INCLUDE_NEXT
34 #  include_next <inttypes.h>
35 # else
36 #  include FULL_PATH_INTTYPES_H
37 # endif
38 #endif
39 #include <stdint.h>
40
41 #if !HAVE_DECL_STRTOIMAX
42 intmax_t strtoimax (const char *, char **, int);
43 #endif
44 #if !HAVE_DECL_STRTOUMAX
45 uintmax_t strtoumax (const char *, char **, int);
46 #endif
47
48 #endif /* INTTYPES_H */