Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
b8a0af82
Commit
b8a0af82
authored
Feb 09, 2003
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bigendian is now determined at configure time
parent
76e558d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
39 deletions
+8
-39
configure.ac
configure.ac
+1
-0
rfb.h
include/rfb.h
+2
-35
main.c
main.c
+5
-4
No files found.
configure.ac
View file @
b8a0af82
...
...
@@ -68,6 +68,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_C_BIGENDIAN
AC_TYPE_SIZE_T
AC_HEADER_TIME
...
...
include/rfb.h
View file @
b8a0af82
...
...
@@ -60,50 +60,17 @@ typedef signed char Bool;
#include "rfbproto.h"
#ifdef __linux__
#include <endian.h>
#elif defined(__APPLE__) || defined(__FreeBSD__)
#include <sys/types.h>
#include <machine/endian.h>
#define _BYTE_ORDER BYTE_ORDER
#define _LITTLE_ENDIAN LITTLE_ENDIAN
#elif defined (__SVR4) && defined (__sun)
/* Solaris */
#include <sys/types.h>
#if defined(__sparc)
/* SPARC here (big endian) */
#define _BYTE_ORDER 4321
#elif defined(__i386)
#define _BYTE_ORDER 1234
#else
#error Solaris 2.5.1 had ppc support did it not? :-)
#endif
#undef Bool
#define Bool char
#undef SIGNED
#define SIGNED
#include <sys/types.h>
/* typedef unsigned int pthread_t; */
#elif defined(WIN32)
#define _LITTLE_ENDIAN 1234
#define _BYTE_ORDER _LITTLE_ENDIAN
#if defined(WIN32)
#define WORDS_BIGENDIAN
#undef Bool
#define Bool int
#else
#include <sys/endian.h>
#endif
#ifdef __sgi__
typedef
int
socklen_t
;
#endif
#ifndef _BYTE_ORDER
#define _BYTE_ORDER __BYTE_ORDER
#endif
#if !defined(_LITTLE_ENDIAN) && defined(__LITTLE_ENDIAN)
#define _LITTLE_ENDIAN __LITTLE_ENDIAN
#endif
#ifdef WIN32
#include <sys/timeb.h>
#include <winsock.h>
...
...
main.c
View file @
b8a0af82
...
...
@@ -38,10 +38,11 @@ MUTEX(logMutex);
int
rfbEnableLogging
=
1
;
/* 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
);
#ifdef WORDS_BIGENDIAN
char
rfbEndianTest
=
0
;
#else
char
rfbEndianTest
=
-
1
;
#endif
/* from rfbserver.c */
void
rfbIncrClientRef
(
rfbClientPtr
cl
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment