Added include guards and C++ extern "C" {} constructs. Partial fix for #607253.
Bugfix candidate.
diff --git a/Mac/Include/pythonresources.h b/Mac/Include/pythonresources.h
index 01c96ff..8dfe9ad 100644
--- a/Mac/Include/pythonresources.h
+++ b/Mac/Include/pythonresources.h
@@ -40,6 +40,12 @@
** Resources that reside in the python executable (or, for
** shared ppc python, in the core dynamic library)
*/
+#ifndef Py_PYTHONRESOURCES_H
+#define Py_PYTHONRESOURCES_H
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
#define BASE_ID 228
@@ -181,3 +187,9 @@
/* from macmain.c: */
extern PyMac_PrefRecord PyMac_options;
#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif