From 89de4e141060919f806c5e68f9950cfc93710c66 Mon Sep 17 00:00:00 2001 From: Stephane Peter Date: Wed, 27 Oct 1999 22:49:38 +0000 Subject: [PATCH] Updated header for new SDL begin and end code. --- mixer.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mixer.h b/mixer.h index 249ed8c3..fa1fe442 100644 --- a/mixer.h +++ b/mixer.h @@ -31,6 +31,11 @@ #include +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + /* The default mixer has 8 simultaneous mixing channels */ #ifndef MIX_CHANNELS #define MIX_CHANNELS 8 @@ -198,6 +203,10 @@ extern void Mix_CloseAudio(void); #define Mix_SetError SDL_SetError #define Mix_GetError SDL_GetError +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +}; +#endif #include #endif /* _MIXER_H_ */