Control: tags -1 patch

Here's a patch that's tested on amd64 and i386. This was found in the log in 
both cases:

116 tests, 448 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 
notifications
100% passed

It would be nice if someone could test it on some other architectures,
but perhaps the maintainer is happy to upload a new version anyway.
--- ruby-lapack-1.7.1.orig/ext/f2c_minimal.h
+++ ruby-lapack-1.7.1/ext/f2c_minimal.h
@@ -7,7 +7,9 @@
 #ifndef F2C_INCLUDE
 #define F2C_INCLUDE
 
-#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+#include <stdint.h>
+
+#if UINTPTR_MAX == UINT64_MAX
 typedef int integer;
 typedef int logical;
 #else
@@ -22,7 +24,7 @@
 #ifdef f2c_i2
 typedef short ftnlen;
 #else
-#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+#if UINTPTR_MAX == UINT64_MAX
 typedef int ftnlen;
 #else
 typedef long int ftnlen;

Reply via email to