0.9.18.27: fix darwin build
authorNikodemus Siivola <nikodemus@random-state.net>
Thu, 2 Nov 2006 15:11:25 +0000 (15:11 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Thu, 2 Nov 2006 15:11:25 +0000 (15:11 +0000)
 * Deal with missing FPE_FOO constants.

tools-for-build/grovel-headers.c
version.lisp-expr

index ed6cfe6..a9fe11d 100644 (file)
@@ -354,14 +354,30 @@ main(int argc, char *argv[])
     defsignal("sigxcpu", SIGXCPU);
     defsignal("sigxfsz", SIGXFSZ);
 #endif
+
+   /* Floating point exception codes. Some of these
+    * are missing on Darwin. */
+#ifdef FPE_INTOVF
     defconstant("fpe-intovf", FPE_INTOVF);
+#else
+    defconstant("fpe-intovf", -1);
+#endif
+#ifdef FPE_INTDIV
     defconstant("fpe-intdiv", FPE_INTDIV);
+#else
+    defconstant("fpe-intdiv", -1);
+#endif
     defconstant("fpe-fltdiv", FPE_FLTDIV);
     defconstant("fpe-fltovf", FPE_FLTOVF);
     defconstant("fpe-fltund", FPE_FLTUND);
     defconstant("fpe-fltres", FPE_FLTRES);
     defconstant("fpe-fltinv", FPE_FLTINV);
+#ifdef FPE_FLTSUB
     defconstant("fpe-fltsub", FPE_FLTSUB);
+#else
+    defconstant("fpe-fltsub", -1);
+#endif
+
 #endif // _WIN32
     return 0;
 }
index e79fe37..cd591ea 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.18.26"
+"0.9.18.27"