Skip to content

Commit 0392f97

Browse files
carenasgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 46a3ab7 commit 0392f97

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ include shared.mak
114114
#
115115
# Define NO_INTPTR_T if you don't have intptr_t or uintptr_t.
116116
#
117-
# Define NO_UINTMAX_T if you don't have uintmax_t.
118-
#
119117
# Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
120118
# Patrick Mauritz).
121119
#
@@ -1915,9 +1913,6 @@ endif
19151913
ifdef NO_INTPTR_T
19161914
COMPAT_CFLAGS += -DNO_INTPTR_T
19171915
endif
1918-
ifdef NO_UINTMAX_T
1919-
BASIC_CFLAGS += -Duintmax_t=uint32_t
1920-
endif
19211916
ifdef NO_SOCKADDR_STORAGE
19221917
ifdef NO_IPV6
19231918
BASIC_CFLAGS += -Dsockaddr_storage=sockaddr_in

configure.ac

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,14 +1121,6 @@ GIT_CHECK_FUNC(strlcpy,
11211121
[NO_STRLCPY=YesPlease])
11221122
GIT_CONF_SUBST([NO_STRLCPY])
11231123
#
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-
#
11321124
# Define NO_STRTOUMAX if you don't have strtoumax in the C library.
11331125
GIT_CHECK_FUNC(strtoumax,
11341126
[NO_STRTOUMAX=],

meson.build

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,17 +1331,6 @@ if compiler.compiles('''
13311331
libgit_c_args += '-DHAVE_CLOCK_MONOTONIC'
13321332
endif
13331333

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-
13451334
has_bsd_sysctl = false
13461335
if compiler.has_header('sys/sysctl.h')
13471336
if compiler.compiles('''

0 commit comments

Comments
 (0)