Skip to content

Commit

Permalink
Updated for recent SDL3 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 12, 2024
1 parent 0238375 commit 087004f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion external/SDL
Submodule SDL updated 649 files
8 changes: 2 additions & 6 deletions include/SDL3_mixer/SDL_mixer.h
Expand Up @@ -29,11 +29,7 @@
#ifndef SDL_MIXER_H_
#define SDL_MIXER_H_

#include <SDL3/SDL_stdinc.h>
#include <SDL3/SDL_rwops.h>
#include <SDL3/SDL_audio.h>
#include <SDL3/SDL_endian.h>
#include <SDL3/SDL_version.h>
#include <SDL3/SDL.h>
#include <SDL3/SDL_begin_code.h>

/* Set up for C function definitions, even when using C++ */
Expand Down Expand Up @@ -100,7 +96,7 @@ extern "C" {
*
* \since This function is available since SDL_mixer 3.0.0.
*/
extern DECLSPEC const SDL_version * SDLCALL Mix_Linked_Version(void);
extern DECLSPEC const SDL_Version * SDLCALL Mix_Linked_Version(void);

/**
* Initialization flags
Expand Down
8 changes: 4 additions & 4 deletions src/mixer.c
Expand Up @@ -48,11 +48,11 @@ SDL_COMPILE_TIME_ASSERT(SDL_BUILD_MICRO_VERSION,

#if defined(SDL_COMPILE_TIME_ASSERT)
SDL_COMPILE_TIME_ASSERT(SDL_MIXER_MAJOR_VERSION_min, SDL_MIXER_MAJOR_VERSION >= 0);
/* Limited only by the need to fit in SDL_version */
/* Limited only by the need to fit in SDL_Version */
SDL_COMPILE_TIME_ASSERT(SDL_MIXER_MAJOR_VERSION_max, SDL_MIXER_MAJOR_VERSION <= 255);

SDL_COMPILE_TIME_ASSERT(SDL_MIXER_MINOR_VERSION_min, SDL_MIXER_MINOR_VERSION >= 0);
/* Limited only by the need to fit in SDL_version */
/* Limited only by the need to fit in SDL_Version */
SDL_COMPILE_TIME_ASSERT(SDL_MIXER_MINOR_VERSION_max, SDL_MIXER_MINOR_VERSION <= 255);

SDL_COMPILE_TIME_ASSERT(SDL_MIXER_PATCHLEVEL_min, SDL_MIXER_PATCHLEVEL >= 0);
Expand Down Expand Up @@ -162,9 +162,9 @@ void add_chunk_decoder(const char *decoder)
}

/* rcg06192001 get linked library's version. */
const SDL_version *Mix_Linked_Version(void)
const SDL_Version *Mix_Linked_Version(void)
{
static SDL_version linked_version;
static SDL_Version linked_version;
SDL_MIXER_VERSION(&linked_version);
return &linked_version;
}
Expand Down

0 comments on commit 087004f

Please sign in to comment.