Skip to content

Commit f05396b

Browse files
Clarify the macro.
1 parent c474d54 commit f05396b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Include/internal/pycore_pythread.h

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ extern "C" {
1616
# ifdef HAVE_PTHREAD_H
1717
# include <pthread.h> /* _POSIX_THREADS */
1818
# endif
19-
#endif
20-
21-
#ifndef _POSIX_THREADS
22-
19+
# ifndef _POSIX_THREADS
2320
/* Check if we're running on HP-UX and _SC_THREADS is defined. If so, then
2421
enough of the Posix threads package is implemented to support python
2522
threads.
@@ -28,12 +25,12 @@ extern "C" {
2825
a check of __ia64 to verify that we're running on an ia64 system instead
2926
of a pa-risc system.
3027
*/
31-
#ifdef __hpux
32-
#ifdef _SC_THREADS
33-
#define _POSIX_THREADS
34-
#endif
35-
#endif
36-
28+
# ifdef __hpux
29+
# ifdef _SC_THREADS
30+
# define _POSIX_THREADS
31+
# endif
32+
# endif
33+
# endif /* _POSIX_THREADS */
3734
#endif /* _POSIX_THREADS */
3835

3936
#if defined(_POSIX_THREADS) && !defined(HAVE_PTHREAD_STUBS)

0 commit comments

Comments
 (0)