Endian portability #defines in GLIB
- From: Manish Singh <yosh gimp org>
- To: gtk-devel-list redhat com
- Subject: Endian portability #defines in GLIB
- Date: Sun, 18 Oct 1998 14:22:39 -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.
Just a small, simple addition to enhance glib as a portability lib.
-Yosh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]