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 <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2022-10-26 16:41:33 -07:00
parent f85fff6e11
commit 917e5db3b1
2 changed files with 6 additions and 6 deletions

View file

@ -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("

View file

@ -112,9 +112,9 @@
#endif
/* Define to `long' if <sys/types.h> does not define. */
#cmakedefine off_t @OFF_T@
#cmakedefine off_t @off_t@
/* Define to `unsigned' if <sys/types.h> does not define. */
#cmakedefine size_t @SIZE_T@
#cmakedefine size_t @size_t@
#endif // ndef EXPAT_CONFIG_H