diff options
author | Brad King <brad.king@kitware.com> | 2017-05-19 18:16:46 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-19 18:16:53 (GMT) |
commit | a2f1c8bd98decaaf7402519217dbf0fd386f92ff (patch) | |
tree | f651c1620e6e740c1377b0035144071c4c97c08e /Utilities | |
parent | de41f3b38c0d5e8d7045cd5e6e96eef72c388d5b (diff) | |
parent | fb6142ab2f88a89bdc915772e2a3a6e8c77c4b04 (diff) | |
download | CMake-a2f1c8bd98decaaf7402519217dbf0fd386f92ff.zip CMake-a2f1c8bd98decaaf7402519217dbf0fd386f92ff.tar.gz CMake-a2f1c8bd98decaaf7402519217dbf0fd386f92ff.tar.bz2 |
Merge topic 'liblzma-fix-inline'
fb6142ab liblzma: Fix HAVE_INLINE and HAVE___INLINE checks
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !867
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmliblzma/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmliblzma/CMakeLists.txt b/Utilities/cmliblzma/CMakeLists.txt index e806680..bb3b8a7 100644 --- a/Utilities/cmliblzma/CMakeLists.txt +++ b/Utilities/cmliblzma/CMakeLists.txt @@ -15,11 +15,11 @@ CHECK_C_SOURCE_COMPILES( HAVE___RESTRICT) CHECK_C_SOURCE_COMPILES( - "inline int test (void) {return 0;}\nint main (void) {return test();}" + "static inline int test (void) {return 0;}\nint main (void) {return test();}" HAVE_INLINE) CHECK_C_SOURCE_COMPILES ( - "__inline int test (void) {return 0;}\nint main (void) {return test();}" + "static __inline int test (void) {return 0;}\nint main (void) {return test();}" HAVE___INLINE) CHECK_INCLUDE_FILE(byteswap.h HAVE_BYTESWAP_H) |