Skip to content

Commit

Permalink
Visual C fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 25, 2002
1 parent 8a424a9 commit 3b47749
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions SDL_sound_internal.h
Expand Up @@ -35,6 +35,10 @@

#include "SDL.h"

#if ((defined _MSC_VER) && (!defined inline))
# define inline __inline__
#endif

#if (defined DEBUG_CHATTER)
#define SNDDBG(x) printf x
#else
Expand Down
4 changes: 0 additions & 4 deletions decoders/shn.c
Expand Up @@ -57,10 +57,6 @@
#define __SDL_SOUND_INTERNAL__
#include "SDL_sound_internal.h"

#ifdef _MSC_VER
# define inline __inline
#endif

static int SHN_init(void);
static void SHN_quit(void);
static int SHN_open(Sound_Sample *sample, const char *ext);
Expand Down
2 changes: 1 addition & 1 deletion decoders/smpeg.c
Expand Up @@ -93,7 +93,7 @@ static void _SMPEG_quit(void)
} /* _SMPEG_quit */


static __inline__ void output_version(void)
static inline void output_version(void)
{
static int first_time = 1;

Expand Down
2 changes: 1 addition & 1 deletion decoders/voc.c
Expand Up @@ -139,7 +139,7 @@ static void VOC_quit(void)
} /* VOC_quit */


static __inline__ int voc_check_header(SDL_RWops *src)
static inline int voc_check_header(SDL_RWops *src)
{
/* VOC magic header */
Uint8 signature[20]; /* "Creative Voice File\032" */
Expand Down

0 comments on commit 3b47749

Please sign in to comment.