[kaffe] CVS kaffe (guilhem): Fixlet for darwin.

Kaffe CVS cvs-commits at kaffe.org
Tue Apr 26 05:26:49 PDT 2005


PatchSet 6423 
Date: 2005/04/26 12:22:08
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixlet for darwin.

        * config/config-hacks.h: Added some alias definition for fdlibm.

        * libraries/clib/fdlibm/mprec.h: Include config-hacks.h

Members: 
	ChangeLog:1.3951->1.3952 
	config/config-hacks.h:INITIAL->1.14 
	libraries/clib/fdlibm/mprec.h:1.1->1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3951 kaffe/ChangeLog:1.3952
--- kaffe/ChangeLog:1.3951	Mon Apr 25 16:31:09 2005
+++ kaffe/ChangeLog	Tue Apr 26 12:22:08 2005
@@ -1,3 +1,9 @@
+2005-04-26  Guilhem Lavaux  <guilhem at kaffe.org>
+
+	* config/config-hacks.h: Added some alias definition for fdlibm.
+
+	* libraries/clib/fdlibm/mprec.h: Include config-hacks.h
+
 2005-04-25  Ito Kazumitsu <kaz at maczuka.gcd.org>
 
 	* libraries/javalib/java/net/NetworkInterface.java
===================================================================
Checking out kaffe/config/config-hacks.h
RCS:  /home/cvs/kaffe/kaffe/config/config-hacks.h,v
VERS: 1.14
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/config/config-hacks.h	Tue Apr 26 12:26:49 2005
@@ -0,0 +1,89 @@
+/*
+ * config-hacks.h
+ * Various hacks to the configuration for things that aren't
+ *  automatically worked out.
+ *
+ * Copyright (c) 1996, 1997
+ *	Transvirtual Technologies, Inc.  All rights reserved.
+ *
+ * See the file "license.terms" for information on usage and redistribution 
+ * of this file. 
+ */
+
+/* Hacks to configure NeXT */
+#if defined(NeXT)
+#undef  HAVE_SYS_UTSNAME_H
+#define HAVE_DYN_UNDERSTORE 1
+#undef	HAVE_SBRK
+#endif
+
+/* Hack to configure AmigaOS */
+#if defined(__amigaos__)
+#define HAVE_DYN_UNDERSTORE 1
+#endif  
+
+/* Hack for Windows */
+#if defined(__WIN32__) || defined(WIN32) || defined(_WIN32)
+#undef	__WIN32__
+#define __WIN32__ 1
+#endif
+#if defined(__WIN32__)
+#if defined(HAVE_WINSOCK2_H)
+#include <winsock2.h>
+#if _MSC_VER < 1200
+#define HAVE_INT32 1
+#endif
+#endif
+#if defined(__cplusplus)
+#define HAVE_BOOL 1
+#else
+#define inline
+#endif
+#endif
+
+/* Hack for NetBSD */
+#if defined(__NetBSD__)
+#define	HAVE_DYN_UNDERSTORE 1
+#define	DEFAULT_LIBRARYPATH "/usr/local/lib:/usr/lib"
+#endif
+
+/* Hack to configure AIX */
+#if defined(_AIX)
+#define  HAVE_SYS_SELECT_H 1
+#endif
+
+/* Hack to configure BeOS R4 */
+#if defined(__BEOS__)
+#include <socket.h>
+#if defined(MSG_PEEK)
+#error Looks like BeOS finally supports MSG_PEEK.
+#error Please remove the MSG_PEEK hack in config-hacks.h and syscalls.c.
+#else
+#define MSG_PEEK 0x2
+#endif
+#endif
+
+/* The 386 can do unaligned memory accesses */
+#if defined(__i386__)
+#define	HAVE_UNALIGNEDACCESS
+#endif
+
+/* On arm, word order of doubles is always big endian when
+ * using FPA. When using VFP, word order of doubles follows
+ * the word order of the memory system.
+ *
+ * Therefore, the word order of doubles is opposite to the
+ * word order of jlongs when using a little endian arm
+ * unless VFP is used.
+ */
+#if defined(__ARMEL__) && !defined(__VFP_FP__)
+#define DOUBLE_ORDER_OPPOSITE
+#endif
+
+#if defined(HAVE_INT32)
+#define HAVE_INT32_DEFINED
+#endif
+
+#if defined(HAVE_UINT32)
+#define _UINT32_T
+#endif
Index: kaffe/libraries/clib/fdlibm/mprec.h
diff -u kaffe/libraries/clib/fdlibm/mprec.h:1.1 kaffe/libraries/clib/fdlibm/mprec.h:1.2
--- kaffe/libraries/clib/fdlibm/mprec.h:1.1	Fri Apr 22 17:03:49 2005
+++ kaffe/libraries/clib/fdlibm/mprec.h	Tue Apr 26 12:22:11 2005
@@ -30,6 +30,7 @@
 #define __CLASSPATH_MPREC_H__
 
 #include <config.h>
+#include "config-hacks.h"
 #include "ieeefp.h"
 
 #if defined HAVE_STDINT_H




More information about the kaffe mailing list