CMake: Not all platforms have endian.h, so use the build system's endianess check.

pull/1/head
Christian Beier 9 years ago
parent cada820645
commit cb66df0779

@ -5,6 +5,7 @@ project(LibVNCServer)
include(CheckFunctionExists) include(CheckFunctionExists)
include(CheckIncludeFile) include(CheckIncludeFile)
include(CheckTypeSize) include(CheckTypeSize)
include(TestBigEndian)
include(CheckCSourceCompiles) include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles) include(CheckCXXSourceCompiles)
include(CheckCSourceRuns) include(CheckCSourceRuns)
@ -173,6 +174,8 @@ if(NOT HAVE_LIBVNCSERVER_IN_ADDR_T)
set(LIBVNCSERVER_NEED_INADDR_T 1) set(LIBVNCSERVER_NEED_INADDR_T 1)
endif(NOT HAVE_LIBVNCSERVER_IN_ADDR_T) endif(NOT HAVE_LIBVNCSERVER_IN_ADDR_T)
TEST_BIG_ENDIAN(LIBVNCSERVER_WORDS_BIGENDIAN)
# TODO: # TODO:
# LIBVNCSERVER_ENOENT_WORKAROUND # LIBVNCSERVER_ENOENT_WORKAROUND
# inline # inline

Loading…
Cancel
Save