summaryrefslogtreecommitdiff
path: root/Build/source/libs/zziplib/zziplib-0.13.59/zzip/stdint.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-10-05 06:58:05 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-10-05 06:58:05 +0000
commit71a9724cc032291e34911c0eead10c8b0801aad2 (patch)
tree32fc59da386a173ecaea27ef7e9cd1cd99170529 /Build/source/libs/zziplib/zziplib-0.13.59/zzip/stdint.h
parentc377db3a1bf55130706cb6ba31f4239c21b3e8f2 (diff)
zziplib 0.13.59 (29mar10)
git-svn-id: svn://tug.org/texlive/trunk@19998 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/zziplib/zziplib-0.13.59/zzip/stdint.h')
-rw-r--r--Build/source/libs/zziplib/zziplib-0.13.59/zzip/stdint.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/Build/source/libs/zziplib/zziplib-0.13.59/zzip/stdint.h b/Build/source/libs/zziplib/zziplib-0.13.59/zzip/stdint.h
new file mode 100644
index 00000000000..4552c5b04e0
--- /dev/null
+++ b/Build/source/libs/zziplib/zziplib-0.13.59/zzip/stdint.h
@@ -0,0 +1,45 @@
+#ifndef _ZZIP__STDINT_H /* zzip-stdint.h */
+#define _ZZIP__STDINT_H 1
+/* this file ensures that we have some kind of typedef declarations for
+ unsigned C9X typedefs. The ISO C 9X: 7.18 Integer types file is stdint.h
+ */
+
+#include <zzip/conf.h>
+
+/* enforce use of ifdef'd C9X entries in system headers */
+#define __USE_ANSI 1
+#define __USE_ISOC9X 1
+
+#ifdef ZZIP_HAVE_STDINT_H
+ /* ISO C 9X: 7.18 Integer types <stdint.h> */
+#include <stdint.h>
+#elif defined ZZIP_HAVE_SYS_INT_TYPES_H /*solaris*/
+#include <sys/int_types.h>
+#elif defined ZZIP_HAVE_INTTYPES_H /*freebsd*/
+#include <inttypes.h>
+#else
+ typedef unsigned char uint8_t; typedef signed char int8_t;
+
+# if ZZIP_SIZEOF_INT && ZZIP_SIZEOF_INT == 2
+ typedef unsigned int uint16_t; typedef signed int int16_t;
+# elif ZZIP_SIZEOF_SHORT && ZZIP_SIZEOF_SHORT == 2
+ typedef unsigned short uint16_t; typedef signed short int16_t;
+# else
+# error unable to typedef int16_t from either int or short
+ typedef unsigned short uint16_t; typedef signed short int16_t;
+# endif
+
+# if defined ZZIP_SIZEOF_INT && ZZIP_SIZEOF_INT == 4
+ typedef unsigned int uint32_t; typedef signed int int32_t;
+# elif defined ZZIP_SIZEOF_LONG && ZZIP_SIZEOF_LONG == 4
+ typedef unsigned long uint32_t; typedef signed long int32_t;
+# else
+# error unable to typedef int32_t from either int or long
+ typedef unsigned long uint32_t; typedef signed long int32_t;
+# endif
+
+typedef unsigned _zzip___int64 uint64_t; typedef _zzip___int64 int64_t;
+#endif
+
+#endif /*_ZZIP_STDINT_H*/
+