This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch1 darwin & libgcj


Hi, 

this is the first patch from my side to make libgcj compile under darwin5.2.
It defines the IEEE_BIG_ENDIAN in ieeefp.h since darwin doesn't know the
switch __PPC__.
Welcome for comments and corrections.

Andreas

P.s. the mail goes to gcc-patches since it is noted so...

2001-12-29 Andreas Tobler <a.tobler@schweiz.ch>

	* libjava/java/lang/ieeefp.h
	define IEEE_BIG_ENDIAN for darwin

--- gccclean/gcc/libjava/java/lang/ieeefp.h     Sat Dec 29 12:42:31 2001
+++ gccsrc/gcc/libjava/java/lang/ieeefp.h       Fri Dec 28 14:33:50 2001
@@ -96,6 +96,11 @@
 #define __IEEE_LITTLE_ENDIAN
 #endif
 
+#ifdef __APPLE__
+#define __IEEE_BIG_ENDIAN
+#endif
+
+
 #ifdef __PPC__  
 #if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX)
 #define __IEEE_BIG_ENDIAN



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]