From 902f6eedf31d198dcc47abb89a99f5cead9ad6f7 Mon Sep 17 00:00:00 2001 From: Vollstrecker Date: Sun, 1 Dec 2024 11:23:35 +0100 Subject: CMake: Remove checks for sys/types.h, stdint.h and stddef.h. This is done by check_type_size. --- CMakeLists.txt | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 814df18..00fe464 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,26 +20,11 @@ include(CheckCSourceCompiles) include(GNUInstallDirs) enable_testing() -check_include_file(sys/types.h HAVE_SYS_TYPES_H) -check_include_file(stdint.h HAVE_STDINT_H) -check_include_file(stddef.h HAVE_STDDEF_H) - # # Check to see if we have large file support # set(CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1) -# We add these other definitions here because CheckTypeSize.cmake -# in CMake 2.4.x does not automatically do so and we want -# compatibility with CMake 2.4.x. -if(HAVE_SYS_TYPES_H) - list(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_SYS_TYPES_H) -endif() -if(HAVE_STDINT_H) - list(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_STDINT_H) -endif() -if(HAVE_STDDEF_H) - list(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_STDDEF_H) -endif() + check_type_size(off64_t OFF64_T) if(HAVE_OFF64_T) add_definitions(-D_LARGEFILE64_SOURCE=1) -- cgit v1.2.3-55-g6feb