]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: drop never propagated C macros
authorViktor Szakats <commit@vsz.me>
Tue, 10 Jun 2025 16:25:31 +0000 (18:25 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 11 Jun 2025 04:32:22 +0000 (06:32 +0200)
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

lib/config-riscos.h
lib/curl_config.h.cmake

index b8aaa5d413b370702155a0eab82ce381fad73f81..f78ca2d496c9f5d0156382f1bc0ee1971822be48 100644 (file)
 /* 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
 
index efaa8a4594a22e41c88b6f54ec2e1d86c52b23e0..ddaec64f79507941c5e5a9911d0fd175b38a836b 100644 (file)
@@ -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 <sys/types.h> does not define. */
-#cmakedefine size_t ${size_t}
-
 /* the signed version of size_t */
 #cmakedefine ssize_t ${ssize_t}