Mercurial > hg > octave-kai > gnulib-hg
annotate lib/inttypes.h @ 6836:e2c19cb657e7
Tweak for FreeBSD.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 17 Jun 2006 20:02:16 +0000 |
parents | 296aceb85024 |
children | db0082829637 |
rev | line source |
---|---|
6735
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
1 /* Copyright (C) 2006 Free Software Foundation, Inc. |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
2 Written by Derek Price & Paul Eggert. |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
3 This file is part of gnulib. |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
4 |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
5 This program is free software; you can redistribute it and/or modify |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
6 it under the terms of the GNU Lesser General Public License as published by |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
7 the Free Software Foundation; either version 2.1, or (at your option) |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
8 any later version. |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
9 |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
10 This program is distributed in the hope that it will be useful, |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
13 GNU General Public License for more details. |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
14 |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
15 You should have received a copy of the GNU Lesser General Public License |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
16 along with this program; if not, write to the Free Software Foundation, |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
18 |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
19 #ifndef INTTYPES_H |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
20 #define INTTYPES_H |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
21 |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
22 /* |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
23 * A wrapper for the ISO C 99 <inttypes.h>. |
6768 | 24 * <http://www.opengroup.org/susv3xbd/inttypes.h.html> |
6735
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
25 * |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
26 * Currently, if the system <inttypes.h> is missing or not C99 compliant, then |
6738
67b882777a7a
* lib/inttypes.h: Correct grammar in comment.
Derek R. Price <derek@ximbiot.com>
parents:
6735
diff
changeset
|
27 * this header may only provide the required <stdint.h> (which may be the |
6735
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
28 * *almost* C99 compliant one from GNULIB) and prototypes for the strtoimax and |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
29 * strtoumax functions. |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
30 */ |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
31 |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
32 #if HAVE_INTTYPES_H |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
33 # if HAVE_INCLUDE_NEXT |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
34 # include_next <inttypes.h> |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
35 # else |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
36 # include FULL_PATH_INTTYPES_H |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
37 # endif |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
38 #endif |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
39 #include <stdint.h> |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
40 |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
41 #if !HAVE_DECL_STRTOIMAX |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
42 intmax_t strtoimax (const char *, char **, int); |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
43 #endif |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
44 #if !HAVE_DECL_STRTOUMAX |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
45 uintmax_t strtoumax (const char *, char **, int); |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
46 #endif |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
47 |
1f6871379885
* modules/inttypes: New file.
Derek R. Price <derek@ximbiot.com>
parents:
diff
changeset
|
48 #endif /* INTTYPES_H */ |