]> granicus.if.org Git - python/commitdiff
Make macglue.h C++ compatible.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 30 Sep 1999 11:14:49 +0000 (11:14 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 30 Sep 1999 11:14:49 +0000 (11:14 +0000)
Mac/Include/macglue.h

index ffd11e144efeba91aefc8fee377eaa0a89f1bb60..b40d18aeb391b7427c1be25609424122c6289785 100644 (file)
@@ -31,6 +31,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <Events.h>
 #include <StandardFile.h>
 
+#ifdef __cplusplus
+       extern "C" {
+#endif
+
 /* Scheduler parameters */
 typedef struct {
        int             check_interrupt;        /* if true check for command-dot */
@@ -124,3 +128,6 @@ void PyMac_Initialize(void);                        /* Initialize function for embedding Python */
 
 long getfiletype(char *);                      /* Get file type */
 int setfiletype(char *, long, long);           /* Set file creator and type */
+#ifdef __cplusplus
+       }
+#endif