diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-09-10 12:32:47 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-09-10 12:32:47 (GMT) |
commit | 47ec1419639b1aa1817860b301c81868284336d1 (patch) | |
tree | 450b5f361f53d0146425411f1d2f2a7f00d9b0f9 /Mac/Include/macdefs.h | |
parent | 2575022aeff348596c34e0caa028ea8c166cbff6 (diff) | |
download | cpython-47ec1419639b1aa1817860b301c81868284336d1.zip cpython-47ec1419639b1aa1817860b301c81868284336d1.tar.gz cpython-47ec1419639b1aa1817860b301c81868284336d1.tar.bz2 |
Added include guards and C++ extern "C" {} constructs. Partial fix for #607253.
Bugfix candidate.
Diffstat (limited to 'Mac/Include/macdefs.h')
-rw-r--r-- | Mac/Include/macdefs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Mac/Include/macdefs.h b/Mac/Include/macdefs.h index 409c253..df7d6f7 100644 --- a/Mac/Include/macdefs.h +++ b/Mac/Include/macdefs.h @@ -2,6 +2,8 @@ look-alike file system access functions on the Macintosh. Public domain by Guido van Rossum, CWI, Amsterdam (July 1987). */ +#ifndef Py_MACDEFS_H +#define Py_MACDEFS_H #include <Types.h> #include <Files.h> @@ -14,6 +16,10 @@ #include <TextUtils.h> #endif +#ifdef __cplusplus + extern "C" { +#endif + /* We may be able to use a std routine in think, don't know */ extern unsigned char *Pstring(char *); extern char *getbootvol(void); @@ -33,3 +39,8 @@ extern int sync(void); #endif #define EOS '\0' #define SEP ':' + +#ifdef __cplusplus +} +#endif +#endif |