mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 15:10:35 -04:00
and native libraries package that has been customized to work with SableVM. WWW: http://www.sablevm.org/
24 lines
716 B
Text
24 lines
716 B
Text
diff -ur sablepath-0.1.3.orig/native/java.math/BigInteger.c sablepath-0.1.3/native/java.math/BigInteger.c
|
|
--- sablepath-0.1.3.orig/native/java.math/BigInteger.c Tue Nov 21 14:07:56 2000
|
|
+++ sablepath-0.1.3/native/java.math/BigInteger.c Tue Jul 9 12:44:12 2002
|
|
@@ -28,12 +28,20 @@
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
+#ifdef HAVE_ENDIAN_H
|
|
#include <endian.h>
|
|
+#endif
|
|
#include <math.h>
|
|
#include "java_math_BigInteger.h"
|
|
#include "../nsa/native_state.h"
|
|
#include <gmp.h>
|
|
|
|
+#ifdef HAVE_MACHINE_ENDIAN_H
|
|
+#include <machine/endian.h>
|
|
+#if BYTE_ORDER == BIG_ENDIAN
|
|
+#define WORDS_BIGENDIAN
|
|
+#endif
|
|
+#endif
|
|
|
|
/* maximum value a jdouble can hold */
|
|
#define JDBL_MAX 1.7976931348623157e+308
|