build: retire NO_UINTMAX_T

A previous commit removed the last user of it, and it is no longer useful with the codebase moving towards C99, which specifies its definition. Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Carlo Marcelo Arenas Belón committed Jul 2, 2025 at 02:37 UTC 0392f976a78867a1f8cfb6c937188f92c8206f5d
3 files changed -24
Makefile
-5
@@ -114,8 +114,6 @@ include shared.mak
114 #
115 # Define NO_INTPTR_T if you don't have intptr_t or uintptr_t.
116 #
117 -# Define NO_UINTMAX_T if you don't have uintmax_t.
118 -#
117 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
118 # Patrick Mauritz).
119 #
@@ -1915,9 +1913,6 @@ endif
1913 ifdef NO_INTPTR_T
1914 COMPAT_CFLAGS += -DNO_INTPTR_T
1915 endif
1918 -ifdef NO_UINTMAX_T
1919 - BASIC_CFLAGS += -Duintmax_t=uint32_t
1920 -endif
1916 ifdef NO_SOCKADDR_STORAGE
1917 ifdef NO_IPV6
1918 BASIC_CFLAGS += -Dsockaddr_storage=sockaddr_in
configure.ac
-8
@@ -1121,14 +1121,6 @@ GIT_CHECK_FUNC(strlcpy,
1121 [NO_STRLCPY=YesPlease])
1122 GIT_CONF_SUBST([NO_STRLCPY])
1123 #
1124 -# Define NO_UINTMAX_T if your platform does not have uintmax_t
1125 -AC_CHECK_TYPE(uintmax_t,
1126 -[NO_UINTMAX_T=],
1127 -[NO_UINTMAX_T=YesPlease],[
1128 -#include <inttypes.h>
1129 -])
1130 -GIT_CONF_SUBST([NO_UINTMAX_T])
1131 -#
1124 # Define NO_STRTOUMAX if you don't have strtoumax in the C library.
1125 GIT_CHECK_FUNC(strtoumax,
1126 [NO_STRTOUMAX=],
meson.build
-11
@@ -1331,17 +1331,6 @@ if compiler.compiles('''
1331 libgit_c_args += '-DHAVE_CLOCK_MONOTONIC'
1332 endif
1333
1334 -if not compiler.compiles('''
1335 - #include <inttypes.h>
1336 -
1337 - void func(void)
1338 - {
1339 - uintmax_t x = 0;
1340 - }
1341 -''', name: 'uintmax_t')
1342 - libgit_c_args += '-DNO_UINTMAX_T'
1343 -endif
1344 -
1334 has_bsd_sysctl = false
1335 if compiler.has_header('sys/sysctl.h')
1336 if compiler.compiles('''