diff --git a/Mac/Modules/help/_Helpmodule.c b/Mac/Modules/help/_Helpmodule.c index 328bc3af114..66abdeb398b 100644 --- a/Mac/Modules/help/_Helpmodule.c +++ b/Mac/Modules/help/_Helpmodule.c @@ -20,6 +20,9 @@ }} while(0) +#ifndef PyDoc_STR +#define PyDoc_STR(x) (x) +#endif #ifdef WITHOUT_FRAMEWORKS #include #else diff --git a/Mac/Modules/help/helpsupport.py b/Mac/Modules/help/helpsupport.py index 26fa054b0ea..34b687198a7 100644 --- a/Mac/Modules/help/helpsupport.py +++ b/Mac/Modules/help/helpsupport.py @@ -36,6 +36,9 @@ #EventKind = Type("EventKind", "H") includestuff = includestuff + """ +#ifndef PyDoc_STR +#define PyDoc_STR(x) (x) +#endif #ifdef WITHOUT_FRAMEWORKS #include #else diff --git a/Mac/Modules/res/_Resmodule.c b/Mac/Modules/res/_Resmodule.c index 5665c47b105..421b9d7c823 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 #include diff --git a/Mac/Modules/res/ressupport.py b/Mac/Modules/res/ressupport.py index 30c44453906..c0bfc8ac182 100644 --- a/Mac/Modules/res/ressupport.py +++ b/Mac/Modules/res/ressupport.py @@ -25,6 +25,9 @@ class ResMethod(ResMixIn, OSErrWeakLinkMethodGenerator): pass # includestuff etc. are imported from macsupport includestuff = includestuff + """ +#ifndef PyDoc_STR +#define PyDoc_STR(x) (x) +#endif #ifdef WITHOUT_FRAMEWORKS #include #include diff --git a/Mac/Modules/scrap/_Scrapmodule.c b/Mac/Modules/scrap/_Scrapmodule.c index 4b3d86584bc..b12db06d143 100644 --- a/Mac/Modules/scrap/_Scrapmodule.c +++ b/Mac/Modules/scrap/_Scrapmodule.c @@ -5,6 +5,9 @@ +#ifndef PyDoc_STR +#define PyDoc_STR(x) (x) +#endif #ifdef _WIN32 #include "pywintoolbox.h" #else diff --git a/Mac/Modules/scrap/scrapsupport.py b/Mac/Modules/scrap/scrapsupport.py index 65525be2290..57d7578a63f 100644 --- a/Mac/Modules/scrap/scrapsupport.py +++ b/Mac/Modules/scrap/scrapsupport.py @@ -26,6 +26,9 @@ ScrapRef = OpaqueByValueType(OBJECTTYPE, OBJECTPREFIX) includestuff = includestuff + """ +#ifndef PyDoc_STR +#define PyDoc_STR(x) (x) +#endif #ifdef WITHOUT_FRAMEWORKS #include #else diff --git a/Mac/Modules/waste/wastemodule.c b/Mac/Modules/waste/wastemodule.c index dd77cefa715..e50107452cd 100644 --- a/Mac/Modules/waste/wastemodule.c +++ b/Mac/Modules/waste/wastemodule.c @@ -23,6 +23,9 @@ #include #include #include +#ifndef PyDoc_STR +#define PyDoc_STR(x) (x) +#endif /* Exported by Qdmodule.c: */ extern PyObject *QdRGB_New(RGBColor *); diff --git a/Mac/Modules/waste/wastescan.py b/Mac/Modules/waste/wastescan.py index b0644ecf66f..bb186aa8082 100644 --- a/Mac/Modules/waste/wastescan.py +++ b/Mac/Modules/waste/wastescan.py @@ -6,7 +6,7 @@ sys.path.append(BGENDIR) from scantools import Scanner -WASTEDIR='/Applications/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/MacOS Support/(Third Party Support)/Waste 2.0 Distribution/C_C++ Headers/' +WASTEDIR='/Volumes/Moes/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/MacOS Support/(Third Party Support)/Waste 2.0 Distribution/C_C++ Headers/' if not os.path.exists(WASTEDIR): raise 'Error: not found: %s', WASTEDIR diff --git a/Mac/Modules/waste/wastesupport.py b/Mac/Modules/waste/wastesupport.py index 40701c5d070..674f9f94f08 100644 --- a/Mac/Modules/waste/wastesupport.py +++ b/Mac/Modules/waste/wastesupport.py @@ -63,6 +63,9 @@ #include <%s>""" % MACHEADERFILE + """ #include #include +#ifndef PyDoc_STR +#define PyDoc_STR(x) (x) +#endif /* Exported by Qdmodule.c: */ extern PyObject *QdRGB_New(RGBColor *);