Commit f57b22a7 authored by Fred Drake's avatar Fred Drake

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.
parent 3aeb632c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment