From: Paul G. <pga...@my...> - 2002-02-05 03:20:13
|
----- Original Message ----- From: Danny Smith <dan...@ya...> Date: Monday, February 4, 2002 11:26 am Subject: Re: [MinGW-dvlpr] [Fwd: [Mingw-users] BYTE_ORDER in mingw headers?] > --- Earnie Boyd <ear...@ya...> wrote: > What do other > developersthink of this? > > > > No, it's not MSVC but it is GNU. I've mixed feelings on this. > > I know I said I don't like pollution of the namespace, but .... > In this case sys/param.h is just a collection of macros. The > BYTE_ORDERone is often necessary for cross-compilation. Some of > the others are > useful for native ports. I would like this header in the mingw > distro. From the standpoint of cross-compiling, it only seems logical to have some means to establish what the endianess of a given platform/machine might be. Paul G. > > > Danny > > > > > Earnie. > > > ATTACHMENT part 2 message/rfc822 > > To: min...@li... > > From: Adam Megacz <mi...@li...> > > Organisation: Myself > > Subject: [Mingw-users] BYTE_ORDER in mingw headers? > > Date: 31 Jan 2002 03:37:51 -0800 > > > > > > Hi there. I've added win32 support to gcj (gcc's java-to-native-code > > compiler); you can now write java programs and compile them directly > > to self-contained .exe's. I'm currently trying to get my patches > > accepted back into gcc/gcj CVS tree. > > > > I'm running into a problem, though. Part of gcj's configure scripts > > use AC_C_BIGENDIAN, which tries to determine the endianness of the > > target platform. When crosscompiling (which you must do for gcj > since> it requires a case-sensitive filesystem to build), the only > way for > > autoconf to figure this out is from sys/types.h. > > > > The two problems I have are: > > > > 1) Autoconf assumes that sys/param.h exists. Unfortunately on mingw > > it doesn't. > > > > 2) Autoconf detects endianness using the value of the BYTE_ORDER > > macro, which mingw's headers do not define. > > > > What do you all think of creating an empty file for sys/param.h and > > including the BYTE_ORDER macro definition in sys/types.h? (or in > > sys/param.h; either one is fine) > > > > If this is agreeable to the maintainers, I can prepare a patch for > > you. > > > > - a > > > > _______________________________________________ > > MinGW-users mailing list > > Min...@li... > > > > You may change your MinGW Account Options or unsubscribe at: > > https://lists.sourceforge.net/lists/listinfo/mingw-users > > > > http://my.yahoo.com.au - My Yahoo! > - It's My Yahoo! Get your own! > > _______________________________________________ > MinGW-dvlpr mailing list > Min...@li... > https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr > |