Skip to content

Commit

Permalink
libmodplug: remove unnecessary libc headers: SDL_stdinc.h handles all.
Browse files Browse the repository at this point in the history
add notes to only two places where SDL_stdinc have no replacements -
rand(), srand() and time().
  • Loading branch information
sezero committed Jan 14, 2021
1 parent 020d996 commit 0cfe2bb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
6 changes: 1 addition & 5 deletions src/libmodplug/load_abc.c
Expand Up @@ -24,12 +24,8 @@
All systems - all compilers (hopefully)
*/

#include <limits.h>
#include <stdlib.h>
#include <stdlib.h> /* rand(), srand() */
#include <time.h>
#include <string.h>
#include <math.h>
#include <ctype.h>

#include "libmodplug.h"

Expand Down
6 changes: 0 additions & 6 deletions src/libmodplug/load_mid.c
Expand Up @@ -24,12 +24,6 @@
All systems - all compilers (hopefully)
*/

#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <math.h>
#include <ctype.h>

#include "libmodplug.h"
#define PAN_LEFT 0x30
#define PAN_RIGHT 0xD0
Expand Down
5 changes: 0 additions & 5 deletions src/libmodplug/load_pat.c
Expand Up @@ -30,11 +30,6 @@

#include "libmodplug.h"

#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <limits.h> /* for PATH_MAX */
#ifndef PATH_MAX
#define PATH_MAX 256
Expand Down
2 changes: 1 addition & 1 deletion src/libmodplug/snd_fx.c
Expand Up @@ -5,7 +5,7 @@
*/

#include "libmodplug.h"
#include <stdlib.h>
#include <stdlib.h> /* for rand() */
#include "tables.h"

DWORD CSoundFile_GetLength(CSoundFile *_this, BOOL bAdjust, BOOL bTotal)
Expand Down

0 comments on commit 0cfe2bb

Please sign in to comment.