Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c7fda7e

Browse files
committed
Make macglue.h C++ compatible.
1 parent 9a41aa8 commit c7fda7e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Mac/Include/macglue.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3131
#include <Events.h>
3232
#include <StandardFile.h>
3333

34+
#ifdef __cplusplus
35+
extern "C" {
36+
#endif
37+
3438
/* Scheduler parameters */
3539
typedef struct {
3640
int check_interrupt; /* if true check for command-dot */
@@ -124,3 +128,6 @@ void PyMac_Initialize(void); /* Initialize function for embedding Python */
124128

125129
long getfiletype(char *); /* Get file type */
126130
int setfiletype(char *, long, long); /* Set file creator and type */
131+
#ifdef __cplusplus
132+
}
133+
#endif

0 commit comments

Comments
 (0)