[pypy-commit] pypy py_ssize_t: Add `#pragma once` include guard to cpyext_object.h

asottile pypy.commits at gmail.com
Fri Sep 8 11:23:32 EDT 2017


Author: Anthony Sottile <asottile at umich.edu>
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;
 


More information about the pypy-commit mailing list