diff src/data.c @ 2001:cc5b615380f8

[xemacs-hg @ 2004-04-08 15:23:07 by james] Various fixes to repair the C++ build.
author james
date Thu, 08 Apr 2004 15:23:09 +0000
parents 4e6a63799f08
children a9cdbfb4716e
line wrap: on
line diff
--- a/src/data.c	Wed Apr 07 21:51:29 2004 +0000
+++ b/src/data.c	Thu Apr 08 15:23:09 2004 +0000
@@ -836,6 +836,7 @@
 /**********************************************************************/
 /*                       Arithmetic functions                         */
 /**********************************************************************/
+#ifndef WITH_NUMBER_TYPES
 typedef struct
 {
   int int_p;
@@ -876,6 +877,7 @@
       goto retry;
     }
 }
+#endif /* WITH_NUMBER_TYPES */
 
 static EMACS_INT
 integer_char_or_marker_to_int (Lisp_Object obj)
@@ -1213,6 +1215,7 @@
   }
 }
 
+#ifndef HAVE_BIGNUM
 static int
 digit_to_number (int character, int base)
 {
@@ -1224,6 +1227,7 @@
 
   return digit >= base ? -1 : digit;
 }
+#endif
 
 DEFUN ("string-to-number", Fstring_to_number, 1, 2, 0, /*
 Convert STRING to a number by parsing it as a number in base BASE.