1 |
commit: 3ddcf39b393511930718ea72eae0ff7ba5c87f1d |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 3 04:43:21 2012 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 3 18:27:44 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commit;h=3ddcf39b |
7 |
|
8 |
include stdint.h/inttypes.h too |
9 |
|
10 |
These contain useful defines which we sometimes want to leverage. |
11 |
|
12 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
13 |
|
14 |
--- |
15 |
configure.ac | 2 ++ |
16 |
headers.h | 6 ++++++ |
17 |
2 files changed, 8 insertions(+), 0 deletions(-) |
18 |
|
19 |
diff --git a/configure.ac b/configure.ac |
20 |
index a6fcd5b..26f6822 100644 |
21 |
--- a/configure.ac |
22 |
+++ b/configure.ac |
23 |
@@ -76,6 +76,7 @@ AC_CHECK_HEADERS_ONCE(m4_flatten([ |
24 |
execinfo.h |
25 |
fcntl.h |
26 |
grp.h |
27 |
+ inttypes.h |
28 |
libgen.h |
29 |
limits.h |
30 |
memory.h |
31 |
@@ -87,6 +88,7 @@ AC_CHECK_HEADERS_ONCE(m4_flatten([ |
32 |
stdarg.h |
33 |
stdbool.h |
34 |
stddef.h |
35 |
+ stdint.h |
36 |
stdio.h |
37 |
stdlib.h |
38 |
string.h |
39 |
|
40 |
diff --git a/headers.h b/headers.h |
41 |
index ab9c17d..512c85b 100644 |
42 |
--- a/headers.h |
43 |
+++ b/headers.h |
44 |
@@ -32,6 +32,9 @@ |
45 |
#ifdef HAVE_GRP_H |
46 |
# include <grp.h> |
47 |
#endif |
48 |
+#ifdef HAVE_INTTYPES_H |
49 |
+# include <inttypes.h> |
50 |
+#endif |
51 |
#ifdef HAVE_LIBGEN_H |
52 |
# include <libgen.h> |
53 |
#endif |
54 |
@@ -62,6 +65,9 @@ |
55 |
#ifdef HAVE_STDDEF_H |
56 |
# include <stddef.h> |
57 |
#endif |
58 |
+#ifdef HAVE_STDINT_H |
59 |
+# include <stdint.h> |
60 |
+#endif |
61 |
#ifdef HAVE_STDIO_H |
62 |
# include <stdio.h> |
63 |
#endif |