diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-11-18 15:26:43 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-11-18 15:26:43 (GMT) |
commit | 972573553e4c323452033cdcb811438ee09220f9 (patch) | |
tree | 88a85429e5938e11df5458cd17ef612a6d9e7a86 /Mac/Modules/res | |
parent | 5efbbcd79306247c63c4a9175df4230a92b3d5be (diff) | |
download | cpython-972573553e4c323452033cdcb811438ee09220f9.zip cpython-972573553e4c323452033cdcb811438ee09220f9.tar.gz cpython-972573553e4c323452033cdcb811438ee09220f9.tar.bz2 |
Define PyDoc_STR if it isn't defined. This makes these modules compile
for Python 2.2.
Diffstat (limited to 'Mac/Modules/res')
-rw-r--r-- | Mac/Modules/res/_Resmodule.c | 3 | ||||
-rw-r--r-- | Mac/Modules/res/ressupport.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Mac/Modules/res/_Resmodule.c b/Mac/Modules/res/_Resmodule.c index 5665c47..421b9d7 100644 --- a/Mac/Modules/res/_Resmodule.c +++ b/Mac/Modules/res/_Resmodule.c @@ -20,6 +20,9 @@ }} while(0) +#ifndef PyDoc_STR +#define PyDoc_STR(x) (x) +#endif #ifdef WITHOUT_FRAMEWORKS #include <Resources.h> #include <string.h> diff --git a/Mac/Modules/res/ressupport.py b/Mac/Modules/res/ressupport.py index 30c4445..c0bfc8a 100644 --- a/Mac/Modules/res/ressupport.py +++ b/Mac/Modules/res/ressupport.py @@ -25,6 +25,9 @@ FSCatalogInfo_ptr = FakeType("(FSCatalogInfo *)0") # includestuff etc. are imported from macsupport includestuff = includestuff + """ +#ifndef PyDoc_STR +#define PyDoc_STR(x) (x) +#endif #ifdef WITHOUT_FRAMEWORKS #include <Resources.h> #include <string.h> |