File hdf5-multiarch.patch of Package hdf5

--- hdf5-1.8.6.orig/src/H5public.h	2011-03-24 11:33:58.425239468 -0400
+++ hdf5-1.8.6/src/H5public.h	2011-03-24 11:36:44.578239468 -0400
@@ -28,8 +28,14 @@
  * it via H5public.h.  The #ifndef _H5public_H guard above would
  * prevent repeated include.
  */
-#include "H5pubconf.h"		/*from configure                             */
-
+#include <bits/wordsize.h>
+#if __WORDSIZE == 32
+#include "H5pubconf-32.h"
+#elif __WORDSIZE == 64
+#include "H5pubconf-64.h"
+#else
+#error "Unknown word size"
+#endif
 /* API Version macro wrapper definitions */
 #include "H5version.h"
 
openSUSE Build Service is sponsored by