From c33dc0c8b2fbe7449c9e6916be935123c2880ca0 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 17 Feb 2003 16:50:13 +0000 Subject: [PATCH] Add comment for LITTLE_ENDIAN problem --- Common/Context.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Common/Context.h b/Common/Context.h index a03b955e11..632fd10272 100644 --- a/Common/Context.h +++ b/Common/Context.h @@ -22,7 +22,9 @@ #include "List.h" -// How RGBA values are packed and unpacked into/from a 4-byte integer +// How RGBA values are packed and unpacked into/from a 4-byte +// integer. Don't use 'LITTLE_ENDIAN': Apple defines it in its system +// headers. #if defined(_BIG_ENDIAN) # define PACK_COLOR(R,G,B,A) ( (R)<<24 | (G)<<16 | (B)<<8 | (A) ) -- GitLab