mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Minor change for symmetry with PyXML: PyDoc_STR should not include
the "safety" parentheses since some older compilers refuse to compile the module then, claiming that static initializers are non-constant. This doesn't actually make any difference for Python, since these definitions are not used when compiling with a version of Python that already defines the PyDoc_* macros.
This commit is contained in:
parent
3aeb632c31
commit
f57b22a716
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
#include "expat.h"
|
||||
|
||||
#ifndef PyDoc_STRVAR
|
||||
#define PyDoc_STR(str) (str)
|
||||
#define PyDoc_STR(str) str
|
||||
#define PyDoc_VAR(name) static char name[]
|
||||
#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue