summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-19 18:16:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-05-19 18:16:53 (GMT)
commita2f1c8bd98decaaf7402519217dbf0fd386f92ff (patch)
treef651c1620e6e740c1377b0035144071c4c97c08e /Utilities
parentde41f3b38c0d5e8d7045cd5e6e96eef72c388d5b (diff)
parentfb6142ab2f88a89bdc915772e2a3a6e8c77c4b04 (diff)
downloadCMake-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.txt4
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)