mixer.h
changeset 9 7744cfb49357
parent 8 d2bf7cf9446c
child 10 2fbd0414a1fc
     1.1 --- a/mixer.h	Wed Oct 27 00:18:07 1999 +0000
     1.2 +++ b/mixer.h	Wed Oct 27 22:49:38 1999 +0000
     1.3 @@ -31,6 +31,11 @@
     1.4  
     1.5  #include <SDL/begin_code.h>
     1.6  
     1.7 +/* Set up for C function definitions, even when using C++ */
     1.8 +#ifdef __cplusplus
     1.9 +extern "C" {
    1.10 +#endif
    1.11 +
    1.12  /* The default mixer has 8 simultaneous mixing channels */
    1.13  #ifndef MIX_CHANNELS
    1.14  #define MIX_CHANNELS	8
    1.15 @@ -198,6 +203,10 @@
    1.16  #define Mix_SetError	SDL_SetError
    1.17  #define Mix_GetError	SDL_GetError
    1.18  
    1.19 +/* Ends C function definitions when using C++ */
    1.20 +#ifdef __cplusplus
    1.21 +};
    1.22 +#endif
    1.23  #include <SDL/close_code.h>
    1.24  
    1.25  #endif /* _MIXER_H_ */