summaryrefslogtreecommitdiffstats
path: root/zipconf.h
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-08-08 11:51:27 +0200
committerRemi Collet <fedora@famillecollet.com>2013-08-08 11:51:27 +0200
commit098af2ee44706eda1d49ace737e4979de35207ca (patch)
treee334cf6b2a8c7fd1419643cde4718855c0b465e1 /zipconf.h
parent78ef147bbb6d9964f90207014412c8395e53e2a4 (diff)
libzip 0.11.1 WIP
Diffstat (limited to 'zipconf.h')
-rw-r--r--zipconf.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/zipconf.h b/zipconf.h
new file mode 100644
index 0000000..4de5c8d
--- /dev/null
+++ b/zipconf.h
@@ -0,0 +1,23 @@
+/*
+ * Kluge to support multilib installation of both 32 and 64-bit RPMS:
+ * we need to arrange that header files that appear in both RPMs are
+ * identical. Hence, this file is architecture-independent and calls
+ * in an arch-dependent file that will appear in just one RPM.
+ *
+ * To avoid breaking arches not explicitly supported by Fedora, we
+ * use this indirection file *only* on known multilib arches.
+ * DO NOT INCLUDE THE NEW FILE DIRECTLY -- ALWAYS INCLUDE THIS ONE INSTEAD. */
+
+#ifndef ZIPCONF_MULTILIB_H
+#define ZIPCONF_MULTILIB_H
+
+#include <bits/wordsize.h>
+#if __WORDSIZE == 32
+#include "zipconf-32.h"
+#elif __WORDSIZE == 64
+#include "zipconf-64.h"
+#else
+#error "unexpected value for __WORDSIZE macro"
+#endif
+
+#endif