From 49bfc728fab29bafaba49cf58867906390986852 Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 23 Apr 2002 08:21:39 +0000 Subject: solaris endian changes --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 3f4580d..a6458f8 100644 --- a/main.c +++ b/main.c @@ -34,7 +34,10 @@ MUTEX(logMutex); -char rfbEndianTest = (_BYTE_ORDER == _LITTLE_ENDIAN); +/* we cannot compare to _LITTLE_ENDIAN, because some systems + (as Solaris) assume little endian if _LITTLE_ENDIAN is + defined, even if _BYTE_ORDER is not _LITTLE_ENDIAN */ +char rfbEndianTest = (_BYTE_ORDER == 1234); /* * rfbLog prints a time-stamped message to the log file (stderr). -- cgit v1.2.1