summaryrefslogtreecommitdiff
blob: e3d8275958000aa67210d435afca75fec80199f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
PyPy does not provide the PyArg_NoArgs macro.
--- a/src/rl_addons/rl_accel/sgmlop.c
+++ b/src/rl_addons/rl_accel/sgmlop.c
@@ -52,6 +52,9 @@
  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.  */
 
 #include "Python.h"
+#ifndef PyArg_NoArgs
+#define PyArg_NoArgs(v) PyArg_Parse(v, "")
+#endif
 #if PY_VERSION_HEX < 0x02050000
 #	define Py_ssize_t int
 #	define lenfunc inquiry