mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 17:31:57 +08:00
expat: Remove unused try_compile checks
This commit is contained in:
@@ -44,14 +44,6 @@ else(WORDS_BIGENDIAN)
|
|||||||
set(BYTEORDER 1234)
|
set(BYTEORDER 1234)
|
||||||
endif(WORDS_BIGENDIAN)
|
endif(WORDS_BIGENDIAN)
|
||||||
|
|
||||||
if(HAVE_SYS_TYPES_H)
|
|
||||||
check_symbol_exists("off_t" "sys/types.h" OFF_T)
|
|
||||||
check_symbol_exists("size_t" "sys/types.h" SIZE_T)
|
|
||||||
else(HAVE_SYS_TYPES_H)
|
|
||||||
set(OFF_T "long")
|
|
||||||
set(SIZE_T "unsigned")
|
|
||||||
endif(HAVE_SYS_TYPES_H)
|
|
||||||
|
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#include <stdlib.h> /* for NULL */
|
#include <stdlib.h> /* for NULL */
|
||||||
#include <unistd.h> /* for syscall */
|
#include <unistd.h> /* for syscall */
|
||||||
@@ -61,6 +53,3 @@ check_c_source_compiles("
|
|||||||
return 0;
|
return 0;
|
||||||
}"
|
}"
|
||||||
HAVE_SYSCALL_GETRANDOM)
|
HAVE_SYSCALL_GETRANDOM)
|
||||||
|
|
||||||
check_c_compiler_flag("-fno-strict-aliasing" FLAG_NO_STRICT_ALIASING)
|
|
||||||
check_c_compiler_flag("-fvisibility=hidden" FLAG_VISIBILITY)
|
|
||||||
|
@@ -86,9 +86,3 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# define __func__ __FUNCTION__
|
# define __func__ __FUNCTION__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define to `long' if <sys/types.h> does not define. */
|
|
||||||
#cmakedefine off_t @OFF_T@
|
|
||||||
|
|
||||||
/* Define to `unsigned' if <sys/types.h> does not define. */
|
|
||||||
#cmakedefine size_t @SIZE_T@
|
|
||||||
|
Reference in New Issue
Block a user