Re: Endian portability #defines in GLIB
- From: Manish Singh <yosh gimp org>
- To: Elliot Lee <sopwith redhat com>
- Cc: gtk-devel-list redhat com
- Subject: Re: Endian portability #defines in GLIB
- Date: Sun, 18 Oct 1998 15:16:45 -0700
> > This was a feature requested by someone on irc, and I think it's good idea.
> >
> > Simply put:
> >
> > #ifdef WORDS_BIGENDIAN
> > #define G_BIG_ENDIAN
> > #else
> > #define G_LITTLE_ENDIAN
> > #endif
> >
> > in glib.h. WORDS_BIGENDIAN is derived from the built-in autoconf test.
>
> This assumes that the machine is not G_PDP_ENDIAN ;-)
Well, I'm sure we can craft an autoconf test to figure it out and #define
G_OLD_SK00L_ENDIAN or whatever. ;)
-Yosh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]