Skip to content

Commit

Permalink
removed unnecessary includes from libmodplug.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Mar 20, 2021
1 parent fd0325b commit d0340e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/SDL_sound_internal.h
Expand Up @@ -89,7 +89,7 @@
* SDL_sound that rely on it, though.
* !!! FIXME: SDL2 supports more channels.
*/
#define MAX_CHANNELS 2
#define SOUND_MAX_CHANNELS 2


typedef struct __SOUND_DECODERFUNCTIONS__
Expand Down
14 changes: 4 additions & 10 deletions src/libmodplug/libmodplug.h
Expand Up @@ -9,7 +9,8 @@
#ifndef _INCL_LIBMODPLUG_H_
#define _INCL_LIBMODPLUG_H_

#include "SDL.h"
#define __SDL_SOUND_INTERNAL__
#include "SDL_sound_internal.h"

#if defined(HAVE_LIBC) && defined(__WATCOMC__) /* Watcom has issues... */
#define SDL_cos cos
Expand All @@ -32,19 +33,13 @@
#pragma warning (disable:4514)
#endif

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <mmsystem.h> /* for WAVE_FORMAT_PCM */
#include <stdio.h>
#include <malloc.h>
#include <stdint.h>

#else

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

typedef Sint8 CHAR;
typedef Uint8 UCHAR;
typedef Uint8* PUCHAR;
Expand All @@ -68,7 +63,6 @@ typedef void* PVOID;
typedef void VOID;

#define LPCTSTR LPCSTR
#define WAVE_FORMAT_PCM 1

#ifndef FALSE
#define FALSE 0
Expand Down

0 comments on commit d0340e6

Please sign in to comment.