Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9caf77a

Browse files
committed
Put definition of _REENTRANT in config.h
1 parent cee555b commit 9caf77a

5 files changed

Lines changed: 72 additions & 74 deletions

File tree

Include/allobjects.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4141
#define UsingSharedLibs
4242
#endif
4343

44-
#ifdef WITH_THREAD
45-
/* This turns errno in a thread-safe function on Solaris.
46-
Wonder what it will break though :-( */
47-
#define _REENTRANT
48-
#endif
49-
5044
#include <stdio.h>
5145
#include <string.h>
5246
#include <errno.h>

Python/mystrtoul.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2626
#include "config.h"
2727
#endif
2828

29-
#ifdef WITH_THREAD
30-
#define _REENTRANT
31-
#endif
32-
3329
/* Convert a possibly signed character to a nonnegative int */
3430
/* XXX This assumes characters are 8 bits wide */
3531
#ifdef __CHAR_UNSIGNED__

config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@
9696
/* Define if you have POSIX threads */
9797
#undef _POSIX_THREADS
9898

99+
/* Define to force use of thread-safe errno, h_errno, and other functions */
100+
#undef _REENTRANT
101+
99102
/* Define if setpgrp() must be called as setpgrp(0, 0). */
100103
#undef SETPGRP_HAVE_ARG
101104

0 commit comments

Comments
 (0)