Skip to content

Commit 6e5a193

Browse files
authored
bpo-46513: Remove AC_C_CHAR_UNSIGNED / __CHAR_UNSIGNED__ (GH-30851)
1 parent 7cf285d commit 6e5a193

File tree

5 files changed

+2
-46
lines changed

5 files changed

+2
-46
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:program:`configure` no longer uses ``AC_C_CHAR_UNSIGNED`` macro and
2+
``pyconfig.h`` no longer defines reserved symbol ``__CHAR_UNSIGNED__``.

Modules/audioop.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55

66
#include "Python.h"
77

8-
#if defined(__CHAR_UNSIGNED__)
9-
#if defined(signed)
10-
/* This module currently does not work on systems where only unsigned
11-
characters are available. Take it out of Setup. Sorry. */
12-
#endif
13-
#endif
14-
158
static const int maxvals[] = {0, 0x7F, 0x7FFF, 0x7FFFFF, 0x7FFFFFFF};
169
/* -1 trick is needed on Windows to support -0x80000000 without a warning */
1710
static const int minvals[] = {0, -0x80, -0x8000, -0x800000, -0x7FFFFFFF-1};

configure

Lines changed: 0 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4699,7 +4699,6 @@ fi
46994699

47004700
# checks for compiler characteristics
47014701

4702-
AC_C_CHAR_UNSIGNED
47034702
AC_C_CONST
47044703

47054704
AC_CACHE_CHECK([for working signed char], [ac_cv_working_signed_char_c], [

pyconfig.h.in

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,11 +1728,6 @@
17281728
/* Define on FreeBSD to activate all library features */
17291729
#undef __BSD_VISIBLE
17301730

1731-
/* Define to 1 if type `char' is unsigned and you are not using gcc. */
1732-
#ifndef __CHAR_UNSIGNED__
1733-
# undef __CHAR_UNSIGNED__
1734-
#endif
1735-
17361731
/* Define to 'long' if <time.h> doesn't define. */
17371732
#undef clock_t
17381733

0 commit comments

Comments
 (0)