Author: Anthony Sottile <[email protected]>
Branch: py_ssize_t
Changeset: r92357:44574602ff71
Date: 2017-09-08 07:35 -0700
http://bitbucket.org/pypy/pypy/changeset/44574602ff71/
Log: Add `#pragma once` include guard to cpyext_object.h
In order to get the definition of `Py_ssize_t`, other headers
include this file. `#pragma once` was chosen as `pycparser` does not
support parsing of preprocessor directives.
diff --git a/pypy/module/cpyext/parse/cpyext_object.h
b/pypy/module/cpyext/parse/cpyext_object.h
--- a/pypy/module/cpyext/parse/cpyext_object.h
+++ b/pypy/module/cpyext/parse/cpyext_object.h
@@ -1,3 +1,4 @@
+#pragma once
typedef long Py_ssize_t;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit