Skip to content

Commit 9c68464

Browse files
committed
Using __has_include to detect header files
1 parent dd07aec commit 9c68464

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PC/pyconfig.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,11 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
672672
/* #define HAVE_SYS_UN_H 1 */
673673

674674
/* Define if you have the <afunix.h> header file. */
675-
#define HAVE_AFUNIX_H 1
675+
#if defined(__has_include) && __has_include(<afunix.h>)
676+
#define HAVE_AFUNIX_H 1
677+
#else
678+
#define HAVE_AFUNIX_H 0
679+
#endif
676680

677681
/* Define if you have the <sys/utime.h> header file. */
678682
/* #define HAVE_SYS_UTIME_H 1 */

0 commit comments

Comments
 (0)