From 4556f49a15be9ff854f8337e8b9a5dbbcbab2b29 Mon Sep 17 00:00:00 2001 From: Alexey Sheplyakov Date: Thu, 7 Jan 2021 00:00:32 +0400 Subject: [PATCH] build/CMake: defined `long_long_(big|little)_endian` to intparam.h ... for consistency with autotools build. --- CMakeLists.txt | 2 ++ include/cln/intparam.h.cmake | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a08b08..d2c176f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,10 +138,12 @@ if(cl_cv_bigendian_p) set(short_big_endian 1 CACHE INTERNAL "CPU is big endian") set(int_big_endian 1 CACHE INTERNAL "CPU is big endian") set(long_big_endian 1 CACHE INTERNAL "CPU is big endian") + set(long_long_big_endian 1 CACHE INTERNAL "CPU is big endian") else() set(short_little_endian 1 CACHE INTERNAL "CPU is little endian") set(int_little_endian 1 CACHE INTERNAL "CPU is little endian") set(long_little_endian 1 CACHE INTERNAL "CPU is little endian") + set(long_long_little_endian 1 CACHE INTERNAL "CPU is little endian") endif() include(AsmUnderscore) diff --git a/include/cln/intparam.h.cmake b/include/cln/intparam.h.cmake index a6febae..cea812b 100644 --- a/include/cln/intparam.h.cmake +++ b/include/cln/intparam.h.cmake @@ -10,6 +10,8 @@ #cmakedefine short_little_endian #cmakedefine int_little_endian #cmakedefine long_little_endian +#cmakedefine long_long_little_endian #cmakedefine short_big_endian #cmakedefine int_big_endian #cmakedefine long_big_endian +#cmakedefine long_long_big_endian -- 2.47.0