Skip to content

Commit 881a1cf

Browse files
committed
bpo-46513: Remove AC_C_CHAR_UNSIGNED / __CHAR_UNSIGNED__
1 parent b1a3446 commit 881a1cf

File tree

5 files changed

+2
-43
lines changed

5 files changed

+2
-43
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55

66
#include "Python.h"
77

8-
#if defined(__CHAR_UNSIGNED__)
9-
#if defined(signed)
108
/* This module currently does not work on systems where only unsigned
119
characters are available. Take it out of Setup. Sorry. */
12-
#endif
13-
#endif
1410

1511
static const int maxvals[] = {0, 0x7F, 0x7FFF, 0x7FFFFF, 0x7FFFFFFF};
1612
/* -1 trick is needed on Windows to support -0x80000000 without a warning */

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)