diff options
author | dscho <dscho> | 2002-04-23 08:21:39 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-04-23 08:21:39 +0000 |
commit | 49bfc728fab29bafaba49cf58867906390986852 (patch) | |
tree | b4afe80d4efec08aacdb6d793ac65c1221028dbd /main.c | |
parent | ab4126d1ec05d7c078ac7635aae339bd96ce7863 (diff) | |
download | libtdevnc-49bfc728fab29bafaba49cf58867906390986852.tar.gz libtdevnc-49bfc728fab29bafaba49cf58867906390986852.zip |
solaris endian changes
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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). |