diff --git a/rfb/rfbproto.h b/rfb/rfbproto.h index d5e5291..8e607e5 100644 --- a/rfb/rfbproto.h +++ b/rfb/rfbproto.h @@ -60,6 +60,7 @@ * messages have to be explained by comments. */ +#include #if defined(WIN32) && !defined(__MINGW32__) #define LIBVNCSERVER_WORDS_BIGENDIAN @@ -80,11 +81,12 @@ #endif #endif +#if !defined(_WIN32) # include # if __BYTE_ORDER == __BIG_ENDIAN -# define LIBVBNCSERVER_WORDS_BIGENDIAN 1 +# define LIBVNCSERVER_WORDS_BIGENDIAN 1 # endif - +#endif /* !_WIN32 */ /* MS compilers don't have strncasecmp */ #ifdef _MSC_VER @@ -107,8 +109,6 @@ typedef int8_t rfbBool; #define TRUE -1 #endif -#include - typedef uint32_t rfbKeySym; typedef uint32_t rfbPixel;