Skip to content

Commit

Permalink
Remove auto-generated header files
Browse files Browse the repository at this point in the history
Fixed an issue causing 'u8' undefined errors by including types.h in the dependent file instead
  • Loading branch information
rhargreaves committed Jul 2, 2024
1 parent e7609e2 commit ffb401e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 115 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ res/samples:
unzip temp.zip -d res/samples
rm temp.zip

cleanres: cleantmp
$(RM) -f $(RES_DEP) $(RES_DEPS)

release: FLAGS= $(DEFAULT_FLAGS) -O3 -fuse-linker-plugin -fno-web -fno-gcse \
-fno-unit-at-a-time -fomit-frame-pointer $(LTO_FLAGS)
release: LIBMD= $(LIB)/libmd.a
Expand Down
78 changes: 0 additions & 78 deletions res/samples.h

This file was deleted.

31 changes: 0 additions & 31 deletions res/sprite.h

This file was deleted.

3 changes: 1 addition & 2 deletions src/pcm_sample.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "pcm_sample.h"
#include "samples.h"
#include "sound.h"

static const PcmSample clap = { Clap, sizeof(Clap), SOUND_RATE_22050 };
Expand All @@ -16,4 +15,4 @@ const PcmSample* percussionPcmSample[128] = { &clap, &clap, &clap, &clap, &clap,
&clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap,
&clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap,
&clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap, &clap,
&clap, &clap };
&clap, &clap };
2 changes: 1 addition & 1 deletion src/pcm_sample.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "samples.h"
#include <types.h>
#include "samples.h"

typedef struct PcmSample PcmSample;

Expand Down

0 comments on commit ffb401e

Please sign in to comment.