Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 23, 2003
1 parent cd5cec9 commit 89c414a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
31 changes: 17 additions & 14 deletions SDL_mixer.h
Expand Up @@ -22,8 +22,8 @@

/* $Id$ */

#ifndef _MIXER_H_
#define _MIXER_H_
#ifndef _SDL_mixer_h
#define _SDL_mixer_h

#include "SDL_types.h"
#include "SDL_rwops.h"
Expand All @@ -39,24 +39,30 @@ extern "C" {

/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
*/
#define MIX_MAJOR_VERSION 1
#define MIX_MINOR_VERSION 2
#define MIX_PATCHLEVEL 6
#define SDL_MIXER_MAJOR_VERSION 1
#define SDL_MIXER_MINOR_VERSION 2
#define SDL_MIXER_PATCHLEVEL 6

/* This macro can be used to fill a version structure with the compile-time
* version of the SDL_mixer library.
*/
#define MIX_VERSION(X) \
#define SDL_MIXER_VERSION(X) \
{ \
(X)->major = MIX_MAJOR_VERSION; \
(X)->minor = MIX_MINOR_VERSION; \
(X)->patch = MIX_PATCHLEVEL; \
(X)->major = SDL_MIXER_MAJOR_VERSION; \
(X)->minor = SDL_MIXER_MINOR_VERSION; \
(X)->patch = SDL_MIXER_PATCHLEVEL; \
}

/* Backwards compatibility */
#define MIX_MAJOR_VERSION SDL_MIXER_MAJOR_VERSION
#define MIX_MINOR_VERSION SDL_MIXER_MINOR_VERSION
#define MIX_PATCHLEVEL SDL_MIXER_PATCHLEVEL
#define MIX_VERSION(X) SDL_MIXER_VERSION(X)


/* This function gets the version of the dynamically linked SDL_mixer library.
it should NOT be used to fill a version structure, instead you should
use the MIX_VERSION() macro.
use the SDL_MIXER_VERSION() macro.
*/
extern DECLSPEC const SDL_version * SDLCALL Mix_Linked_Version(void);

Expand Down Expand Up @@ -576,7 +582,4 @@ extern DECLSPEC void SDLCALL Mix_CloseAudio(void);
#endif
#include "close_code.h"

#endif /* _MIXER_H_ */

/* end of SDL_mixer.h ... */

#endif /* _SDL_mixer_h */
2 changes: 1 addition & 1 deletion mixer.c
Expand Up @@ -98,7 +98,7 @@ static void *music_data = NULL;
const SDL_version *Mix_Linked_Version(void)
{
static SDL_version linked_version;
MIX_VERSION(&linked_version);
SDL_MIXER_VERSION(&linked_version);
return(&linked_version);
}

Expand Down
2 changes: 1 addition & 1 deletion playwave.c
Expand Up @@ -103,7 +103,7 @@ static void test_versions(void)
linked = SDL_Linked_Version();
output_versions("SDL", &compiled, linked);

MIX_VERSION(&compiled);
SDL_MIXER_VERSION(&compiled);
linked = Mix_Linked_Version();
output_versions("SDL_mixer", &compiled, linked);
}
Expand Down

0 comments on commit 89c414a

Please sign in to comment.