From: Viktor Szakats Date: Tue, 10 Jun 2025 16:25:31 +0000 (+0200) Subject: cmake: drop never propagated C macros X-Git-Tag: curl-8_15_0~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c9d16f4b80ee8282a19a2b10f97090eaa90ca6f;p=thirdparty%2Fcurl.git cmake: drop never propagated C macros Delete macros from `curl_config.h.cmake` that were never set by the CMake script: `_LARGE_FILES`, `_THREAD_SAFE`, `const`, `size_t`. Also: - lib/config-riscos.h: drop `#undef _LARGE_FILES`. This is an IBM-specific macro, no need to unset it on other platforms. Cherry-picked from #17576 Closes #17580 --- diff --git a/lib/config-riscos.h b/lib/config-riscos.h index b8aaa5d413..f78ca2d496 100644 --- a/lib/config-riscos.h +++ b/lib/config-riscos.h @@ -186,9 +186,6 @@ /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS -/* Define for large files, on AIX-style hosts. */ -#undef _LARGE_FILES - /* Define to empty if `const' does not conform to ANSI C. */ #undef const diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index efaa8a4594..ddaec64f79 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -800,18 +800,6 @@ ${SIZEOF_TIME_T_CODE} /* Number of bits in a file offset, on hosts where this is settable. */ #cmakedefine _FILE_OFFSET_BITS ${_FILE_OFFSET_BITS} -/* Define for large files, on AIX-style hosts. */ -#cmakedefine _LARGE_FILES ${_LARGE_FILES} - -/* define this if you need it to compile thread-safe code */ -#cmakedefine _THREAD_SAFE ${_THREAD_SAFE} - -/* Define to empty if `const' does not conform to ANSI C. */ -#cmakedefine const ${const} - -/* Define to `unsigned int' if does not define. */ -#cmakedefine size_t ${size_t} - /* the signed version of size_t */ #cmakedefine ssize_t ${ssize_t}