[xar] r230 committed - * configure.ac include/xar.h.in: Move the stdint.h vs. inttypes.h into...

3 views
Skip to first unread message

codesite...@google.com

unread,
Nov 24, 2009, 9:53:15 PM11/24/09
to xar-c...@googlegroups.com
Revision: 230
Author: bbraun
Date: Tue Nov 24 18:52:25 2009
Log: * configure.ac include/xar.h.in: Move the stdint.h vs. inttypes.h into
the c
onfigure script and out of the header file

http://code.google.com/p/xar/source/detail?r=230

Modified:
/trunk/xar/ChangeLog
/trunk/xar/configure.ac
/trunk/xar/include/xar.h.in

=======================================
--- /trunk/xar/ChangeLog Tue Nov 24 17:25:24 2009
+++ /trunk/xar/ChangeLog Tue Nov 24 18:52:25 2009
@@ -1,5 +1,6 @@
devel
2009-11-24 Rob Braun bbr...@synack.net
+ * configure.ac include/xar.h.in: Move the stdint.h vs. inttypes.h into
the configure script and out of the header file.
* lib/signature.c: fix a warning with a printf formatting string
* lib/util.c lib/util.h lib/appledouble.h include/xar.h.in: adjust the
inclusion of stdint.h to hopefully avoid problems on proto-c99 systems that
have inttypes.h but not stdint.h. Issue #68
* src/xar.c: If a compression type is specified that we don't
support/haven't been compiled with, spit out an error.
=======================================
--- /trunk/xar/configure.ac Tue Nov 24 17:11:05 2009
+++ /trunk/xar/configure.ac Tue Nov 24 18:52:25 2009
@@ -181,6 +181,9 @@
)
AC_SUBST([enable_autogen])

+AC_CHECK_HEADER([stdint.h], [C99_FIXED_WIDTH_TYPE_HEADER="#include
<stdint.h>"], [AC_CHECK_HEADER([inttypes.h],
[C99_FIXED_WIDTH_TYPE_HEADER="#include <inttypes.h>"], [])])
+AC_SUBST([C99_FIXED_WIDTH_TYPE_HEADER])
+
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/acl.h>], [acl_t a], [AC_DEFINE([HAVE_SYS_ACL_H],[1], [define
if you have sys/acl.h and it has a working acl_t type])])
AC_CHECK_HEADERS(ext2fs/ext2_fs.h sys/statfs.h sys/xattr.h sys/param.h
sys/extattr.h libutil.h)
=======================================
--- /trunk/xar/include/xar.h.in Tue Nov 24 17:25:24 2009
+++ /trunk/xar/include/xar.h.in Tue Nov 24 18:52:25 2009
@@ -41,11 +41,7 @@
#define XAR_VERSION "@XAR_VERSION@"

#include <sys/types.h>
-#if __STDC_VERSION__ >= 199901
-#include <stdint.h>
-#else
-#include <inttypes.h>
-#endif
+@C99_FIXED_WIDTH_TYPE_HEADER@
#include <sys/stat.h>

#pragma pack(4)

Reply all
Reply to author
Forward
0 new messages