summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-11-18 15:26:43 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-11-18 15:26:43 (GMT)
commit972573553e4c323452033cdcb811438ee09220f9 (patch)
tree88a85429e5938e11df5458cd17ef612a6d9e7a86 /Mac/Modules
parent5efbbcd79306247c63c4a9175df4230a92b3d5be (diff)
downloadcpython-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')
-rw-r--r--Mac/Modules/help/_Helpmodule.c3
-rw-r--r--Mac/Modules/help/helpsupport.py3
-rw-r--r--Mac/Modules/res/_Resmodule.c3
-rw-r--r--Mac/Modules/res/ressupport.py3
-rw-r--r--Mac/Modules/scrap/_Scrapmodule.c3
-rw-r--r--Mac/Modules/scrap/scrapsupport.py3
-rw-r--r--Mac/Modules/waste/wastemodule.c3
-rw-r--r--Mac/Modules/waste/wastescan.py2
-rw-r--r--Mac/Modules/waste/wastesupport.py3
9 files changed, 25 insertions, 1 deletions
diff --git a/Mac/Modules/help/_Helpmodule.c b/Mac/Modules/help/_Helpmodule.c
index 328bc3a..66abdeb 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 <MacHelp.h>
#else
diff --git a/Mac/Modules/help/helpsupport.py b/Mac/Modules/help/helpsupport.py
index 26fa054..34b6871 100644
--- a/Mac/Modules/help/helpsupport.py
+++ b/Mac/Modules/help/helpsupport.py
@@ -36,6 +36,9 @@ MenuItemIndex = Type("MenuItemIndex", "H")
#EventKind = Type("EventKind", "H")
includestuff = includestuff + """
+#ifndef PyDoc_STR
+#define PyDoc_STR(x) (x)
+#endif
#ifdef WITHOUT_FRAMEWORKS
#include <MacHelp.h>
#else
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>
diff --git a/Mac/Modules/scrap/_Scrapmodule.c b/Mac/Modules/scrap/_Scrapmodule.c
index 4b3d865..b12db06 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 65525be..57d7578 100644
--- a/Mac/Modules/scrap/scrapsupport.py
+++ b/Mac/Modules/scrap/scrapsupport.py
@@ -26,6 +26,9 @@ from macsupport import *
ScrapRef = OpaqueByValueType(OBJECTTYPE, OBJECTPREFIX)
includestuff = includestuff + """
+#ifndef PyDoc_STR
+#define PyDoc_STR(x) (x)
+#endif
#ifdef WITHOUT_FRAMEWORKS
#include <Scrap.h>
#else
diff --git a/Mac/Modules/waste/wastemodule.c b/Mac/Modules/waste/wastemodule.c
index dd77cef..e501074 100644
--- a/Mac/Modules/waste/wastemodule.c
+++ b/Mac/Modules/waste/wastemodule.c
@@ -23,6 +23,9 @@
#include <WASTE.h>
#include <WEObjectHandlers.h>
#include <WETabs.h>
+#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 b0644ec..bb186aa 100644
--- a/Mac/Modules/waste/wastescan.py
+++ b/Mac/Modules/waste/wastescan.py
@@ -6,7 +6,7 @@ from bgenlocations import TOOLBOXDIR, BGENDIR
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 40701c5..674f9f9 100644
--- a/Mac/Modules/waste/wastesupport.py
+++ b/Mac/Modules/waste/wastesupport.py
@@ -63,6 +63,9 @@ includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """
#include <WEObjectHandlers.h>
#include <WETabs.h>
+#ifndef PyDoc_STR
+#define PyDoc_STR(x) (x)
+#endif
/* Exported by Qdmodule.c: */
extern PyObject *QdRGB_New(RGBColor *);