From 917e5db3b1acf216daf3850eb803116fd744b73d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 26 Oct 2022 16:41:33 -0700 Subject: [PATCH] cmake: lowercase off_t and size_t Because of a bug in meson, defines need to be the same case. Signed-off-by: Rosen Penev --- expat/ConfigureChecks.cmake | 8 ++++---- expat/expat_config.h.cmake | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/expat/ConfigureChecks.cmake b/expat/ConfigureChecks.cmake index 638f0aa2..3fc732f0 100644 --- a/expat/ConfigureChecks.cmake +++ b/expat/ConfigureChecks.cmake @@ -46,11 +46,11 @@ else(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) + 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") + set(off_t "long") + set(size_t "unsigned") endif(HAVE_SYS_TYPES_H) check_c_source_compiles(" diff --git a/expat/expat_config.h.cmake b/expat/expat_config.h.cmake index 78fcb4ca..39548b9b 100644 --- a/expat/expat_config.h.cmake +++ b/expat/expat_config.h.cmake @@ -112,9 +112,9 @@ #endif /* Define to `long' if does not define. */ -#cmakedefine off_t @OFF_T@ +#cmakedefine off_t @off_t@ /* Define to `unsigned' if does not define. */ -#cmakedefine size_t @SIZE_T@ +#cmakedefine size_t @size_t@ #endif // ndef EXPAT_CONFIG_H