mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 12:11:04 -06:00
liblzma: Drop checks for inline and restrict keywords
We now require the compiler to support these, except for MSVC where upstream liblzma already has special cases (in `common/sysdefs.h`).
This commit is contained in:
@@ -6,22 +6,6 @@ include(CheckSymbolExists)
|
||||
include(CheckTypeSize)
|
||||
include(TestBigEndian)
|
||||
|
||||
CHECK_C_SOURCE_COMPILES(
|
||||
"int test (void *restrict x);\nint main (void) {return 0;}"
|
||||
HAVE_RESTRICT)
|
||||
|
||||
CHECK_C_SOURCE_COMPILES(
|
||||
"typedef struct abc *d;\nint test (d __restrict x);\nint main (void) {return 0;}"
|
||||
HAVE___RESTRICT)
|
||||
|
||||
CHECK_C_SOURCE_COMPILES(
|
||||
"static inline int test (void) {return 0;}\nint main (void) {return test();}"
|
||||
HAVE_INLINE)
|
||||
|
||||
CHECK_C_SOURCE_COMPILES (
|
||||
"static __inline int test (void) {return 0;}\nint main (void) {return test();}"
|
||||
HAVE___INLINE)
|
||||
|
||||
CHECK_INCLUDE_FILE(byteswap.h HAVE_BYTESWAP_H)
|
||||
CHECK_INCLUDE_FILE(inttypes.h HAVE_INTTYPES_H)
|
||||
CHECK_INCLUDE_FILE(limits.h HAVE_LIMITS_H)
|
||||
|
||||
@@ -180,30 +180,6 @@ typedef uint64_t uintmax_t;
|
||||
|
||||
#cmakedefine uintptr_t @uintptr_t@
|
||||
|
||||
|
||||
#cmakedefine HAVE_RESTRICT
|
||||
#cmakedefine HAVE___RESTRICT
|
||||
|
||||
#cmakedefine HAVE_INLINE
|
||||
#cmakedefine HAVE___INLINE
|
||||
|
||||
#ifndef HAVE_RESTRICT
|
||||
# ifdef HAVE___RESTRICT
|
||||
# define restrict __restrict
|
||||
# else
|
||||
# define restrict
|
||||
# endif
|
||||
#endif /* HAVE_RESTRICT */
|
||||
|
||||
#ifndef HAVE_INLINE
|
||||
# ifdef HAVE___INLINE
|
||||
# define inline __inline
|
||||
# else
|
||||
# define inline
|
||||
# endif
|
||||
#endif /* HAVE_INLINE */
|
||||
|
||||
|
||||
#cmakedefine WORDS_BIGENDIAN 1
|
||||
|
||||
#cmakedefine HAVE_BYTESWAP_H 1
|
||||
|
||||
Reference in New Issue
Block a user