foxygit / doom Log in
commit 881c5452c8286943d9ed75f2ca0c929ba437b4c7
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Sep 13 20:20:41 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Mon Oct 3 12:52:15 2022 +0300

    hexen: Move S_sfx extern declaration to sounds.h
---
 src/hexen/s_sound.c  | 1 -
 src/hexen/sn_sonix.c | 1 -
 src/hexen/sounds.h   | 4 ++++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/hexen/s_sound.c b/src/hexen/s_sound.c
index 0310b60a..e731552f 100644
--- a/src/hexen/s_sound.c
+++ b/src/hexen/s_sound.c
@@ -65,7 +65,6 @@ static int cd_track_end_time = 0;
 //void *mus_sndptr;
 //byte *soundCurve;

-extern sfxinfo_t S_sfx[];
 extern musicinfo_t S_music[];

 static channel_t Channel[MAX_CHANNELS];
diff --git a/src/hexen/sn_sonix.c b/src/hexen/sn_sonix.c
index c54cccd2..81c506ba 100644
--- a/src/hexen/sn_sonix.c
+++ b/src/hexen/sn_sonix.c
@@ -68,7 +68,6 @@ static int GetSoundOffset(char *name);

 // EXTERNAL DATA DECLARATIONS ----------------------------------------------

-extern sfxinfo_t S_sfx[];

 // PUBLIC DATA DEFINITIONS -------------------------------------------------

diff --git a/src/hexen/sounds.h b/src/hexen/sounds.h
index 90529f63..c7102c76 100644
--- a/src/hexen/sounds.h
+++ b/src/hexen/sounds.h
@@ -313,4 +313,8 @@ typedef enum
     NUMSFX
 } sfxenum_t;

+
+extern sfxinfo_t S_sfx[];
+
+
 #endif