]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: detect and include `inttypes.h` again (revert)
authorViktor Szakats <commit@vsz.me>
Thu, 8 Jan 2026 14:54:17 +0000 (15:54 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 9 Jan 2026 13:59:30 +0000 (14:59 +0100)
Since not using `PRI*` macros, it isn't needed.

Follow-up to 13c1a934144e98d06214a043ff4538791c7d9583 #20215
Revert 4c9e4e99c107b8d0bda5b204c5b69a50425567b9 #20208

Closes #20225

.github/scripts/cmp-config.pl
CMake/unix-cache.cmake
CMake/win32-cache.cmake
CMakeLists.txt
lib/config-os400.h
lib/config-plan9.h
lib/config-riscos.h
lib/config-win32.h
lib/curl_config-cmake.h.in
lib/curl_setup.h

index f12022dd5a9de85e36c19d4f30b689a35c0474cf..e831a97211a548f582050beec313a003419f6fbd 100755 (executable)
@@ -48,6 +48,7 @@ my %remove = (
     '#define HAVE_GSSAPI_GSSAPI_GENERIC_H 1' => 1,
     '#define HAVE_GSSAPI_GSSAPI_H 1' => 1,
     '#define HAVE_GSSAPI_GSSAPI_KRB5_H 1' => 1,
+    '#define HAVE_INTTYPES_H 1' => 1,
     '#define HAVE_LDAP_H 1' => 1,
     '#define HAVE_LDAP_SSL 1' => 1,
     '#define HAVE_LIBBROTLIDEC 1' => 1,
index 821349cda305dc0925398a58e5c6f026ee6470ee..f3db9f0e974ce04f80249329424f6c10c77834a0 100644 (file)
@@ -151,7 +151,6 @@ set(HAVE_IFADDRS_H 1)
 set(HAVE_IF_NAMETOINDEX 1)
 set(HAVE_INET_NTOP 1)
 set(HAVE_INET_PTON 1)
-set(HAVE_INTTYPES_H 1)
 set(HAVE_IOCTLSOCKET 0)
 set(HAVE_IOCTLSOCKET_CAMEL 0)
 set(HAVE_IOCTLSOCKET_CAMEL_FIONBIO 0)
index 27cb57057a41a37e31c970ab5e9269729a2e896f..e704d2195b6f6fd4d4877a1c5655c5bc4264d9cb 100644 (file)
@@ -31,7 +31,6 @@ if(MINGW)
   set(HAVE_DIRENT_H 1)
   set(HAVE_FTRUNCATE 1)
   set(HAVE_GETTIMEOFDAY 1)
-  set(HAVE_INTTYPES_H 1)
   set(HAVE_LIBGEN_H 1)
   set(HAVE_OPENDIR 1)
   set(HAVE_SNPRINTF 1)
@@ -56,10 +55,8 @@ else()
     set(HAVE_STDDEF_H 1)  # detected by CMake internally in check_type_size()
     set(HAVE_STDINT_H 1)  # detected by CMake internally in check_type_size()
     if(MSVC_VERSION GREATER_EQUAL 1800)
-      set(HAVE_INTTYPES_H 1)
       set(HAVE_STDBOOL_H 1)
     else()
-      set(HAVE_INTTYPES_H 0)
       set(HAVE_STDBOOL_H 0)
     endif()
     set(HAVE_BOOL_T "${HAVE_STDBOOL_H}")
index 975f7670c7f221553fb67b16007ae00c61eeb076..8e5383ac98b8b0dcff41e3e23ebb7b8a64e0fe02 100644 (file)
@@ -1461,7 +1461,6 @@ check_include_file_concat_curl("arpa/inet.h"      HAVE_ARPA_INET_H)
 check_include_file("dirent.h"         HAVE_DIRENT_H)
 check_include_file("fcntl.h"          HAVE_FCNTL_H)
 check_include_file_concat_curl("ifaddrs.h"        HAVE_IFADDRS_H)
-check_include_file("inttypes.h"       HAVE_INTTYPES_H)
 check_include_file("io.h"             HAVE_IO_H)
 check_include_file_concat_curl("libgen.h"         HAVE_LIBGEN_H)
 check_include_file("linux/tcp.h"      HAVE_LINUX_TCP_H)
index 9307b44f5189cf97d664efa9732842144af9ba81..ec6c002efd785a7940515a65cbbe6c4c10fbee64 100644 (file)
@@ -96,9 +96,6 @@
 /* Define if you have the `timeval' struct. */
 #define HAVE_STRUCT_TIMEVAL
 
-/* Define if you have the <inttypes.h> header file. */
-#define HAVE_INTTYPES_H
-
 /* Define if you have the <io.h> header file. */
 #undef HAVE_IO_H
 
index 5bae684b1eae80d4e8de780def404e3f4bd7b1af..5303ab33997b0a28615802e3b2bfc064942dae71 100644 (file)
@@ -83,7 +83,6 @@
 #define HAVE_GMTIME_R 1
 #define HAVE_INET_NTOP 1
 #define HAVE_INET_PTON 1
-#define HAVE_INTTYPES_H 1
 #define HAVE_LIBGEN_H 1
 #define HAVE_LIBZ 1
 #define HAVE_LOCALE_H 1
index b58b16dc609109111bd37948245050fc2ed36a00..3158c984ee3615e31d7a302a3648da8d2865323e 100644 (file)
@@ -96,9 +96,6 @@
 /* Define if you have the `timeval' struct. */
 #define HAVE_STRUCT_TIMEVAL
 
-/* Define if you have the <inttypes.h> header file. */
-#define HAVE_INTTYPES_H
-
 /* Define if you have the <io.h> header file. */
 #undef HAVE_IO_H
 
index 6374bd0e98a95a5672d95fa9c307974255510c7d..002782c6ea9e189edeecc0b3e320220a46567427 100644 (file)
 /* Define if you have the <fcntl.h> header file. */
 #define HAVE_FCNTL_H 1
 
-/* Define to 1 if you have the <inttypes.h> header file. */
-#if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__)
-#define HAVE_INTTYPES_H 1
-#endif
-
 /* Define if you have the <io.h> header file. */
 #define HAVE_IO_H 1
 
index bde26eb984f8f0acad00fcc3f0603664631b193f..d8d9d7ecbe58d53952b908bd0f8640d742a83d94 100644 (file)
 /* Define to 1 if symbol `sa_family_t' exists */
 #cmakedefine HAVE_SA_FAMILY_T 1
 
-/* Define to 1 if you have the <inttypes.h> header file. */
-#cmakedefine HAVE_INTTYPES_H 1
-
 /* Define to 1 if you have the ioctlsocket function. */
 #cmakedefine HAVE_IOCTLSOCKET 1
 
index c94dddb2dc9b5ad4388b51bfa20406739f6ad3b6..66b46a0749c4bfea0902108d449533bd75f66672 100644 (file)
 
 #include <limits.h>
 
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
 #ifdef _WIN32
 #  ifdef HAVE_IO_H
 #  include <io.h>