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

Skip to content

Commit 9ea917e

Browse files
committed
Only define PyOS_ReadlineInit if WITH_READLINE defined.
1 parent 5048de2 commit 9ea917e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Parser/myreadline.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ my_fgets(buf, len, fp)
100100
#endif /* WITH_READLINE */
101101

102102

103+
#ifdef WITH_READLINE
103104
void
104105
PyOS_ReadlineInit()
105106
{
@@ -111,6 +112,7 @@ PyOS_ReadlineInit()
111112
been_here++;
112113
}
113114
}
115+
#endif
114116

115117

116118
char *

0 commit comments

Comments
 (0)