Sergio Pascual 27f512f
diff -urN cfitsio/fitsio2.h cfitsio_new/fitsio2.h
Sergio Pascual 27f512f
--- cfitsio/fitsio2.h	2010-01-26 18:40:25.000000000 +0100
Sergio Pascual 27f512f
+++ cfitsio_new/fitsio2.h	2010-06-30 17:24:59.000000000 +0200
Sergio Pascual 27f512f
@@ -85,6 +85,14 @@
Sergio Pascual 27f512f
 #define MACHINE NATIVE
Sergio Pascual 27f512f
 #define LONGSIZE 64   
Sergio Pascual 27f512f
 
Sergio Pascual 27f512f
+#elif defined(__s390x__)
Sergio Pascual 27f512f
+#define BYTESWAPPED FALSE
Sergio Pascual 27f512f
+#define LONGSIZE 64
Sergio Pascual 27f512f
+
Sergio Pascual 27f512f
+#elif defined(__s390__)
Sergio Pascual 27f512f
+#define BYTESWAPPED FALSE
Sergio Pascual 27f512f
+#define LONGSIZE 32
Sergio Pascual 27f512f
+
Sergio Pascual 27f512f
 #elif defined(__ia64__)  || defined(__x86_64__)
Sergio Pascual 27f512f
                   /*  Intel itanium 64-bit PC, or AMD opteron 64-bit PC */
Sergio Pascual 27f512f
 #define BYTESWAPPED TRUE