Added include guards and C++ extern "C" {} constructs. Partial fix for #607253.
Bugfix candidate.
diff --git a/Mac/Include/getapplbycreator.h b/Mac/Include/getapplbycreator.h
index 62e5930..535be16 100644
--- a/Mac/Include/getapplbycreator.h
+++ b/Mac/Include/getapplbycreator.h
@@ -21,6 +21,8 @@
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
+#ifndef Py_GETAPPLBYCREATOR_H
+#define Py_GETALLPBYCREATOR_H
#ifdef WITHOUT_FRAMEWORKS
#include <Types.h>
@@ -29,4 +31,13 @@
#include <Carbon/Carbon.h>
#endif
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
extern OSErr FindApplicationFromCreator(OSType, FSSpecPtr);
+
+#ifdef __cplusplus
+}
+#endif
+#endif