--- inventor-2.1.5-10.orig/lib/database/src/so/SoOutput.c++
+++ inventor-2.1.5-10/lib/database/src/so/SoOutput.c++
@@ -1462,7 +1462,7 @@
 
     // Generates a CC warning. Ho hum.
     if (refDict->find((unsigned long) base, ref))
-#if (_MIPS_SZPTR == 64 || __ia64)
+#if (USE_64BIT_HACKS)
         referenceId = (int) ((unsigned long) ref);
 #else
 	referenceId = (int)ref;
