Skip to content

Commit

Permalink
Revert "Remove some more #include directives"
Browse files Browse the repository at this point in the history
This reverts commit 466b5c8.
  • Loading branch information
bradharding committed Oct 12, 2024
1 parent 466b5c8 commit e48fce5
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/c_cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

#pragma once

#include "doomtype.h"
#include "m_config.h"

#define MAXALIASES 256
Expand Down
1 change: 1 addition & 0 deletions src/c_console.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

#include "d_event.h"
#include "doomdef.h"
#include "doomtype.h"
#include "hu_lib.h"
#include "r_defs.h"

Expand Down
2 changes: 2 additions & 0 deletions src/d_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

#pragma once

#include "i_video.h"

//
// Event handling.
//
Expand Down
1 change: 1 addition & 0 deletions src/d_items.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#pragma once

#include "doomdef.h"
#include "doomtype.h"
#include "r_defs.h"
#include "sounds.h"

Expand Down
3 changes: 3 additions & 0 deletions src/d_iwad.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@

#pragma once

#include "doomdef.h"
#include "w_file.h"

extern char screenshotfolder[MAX_PATH];

char *D_FindWADByName(char *filename);
Expand Down
2 changes: 1 addition & 1 deletion src/doomdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
#pragma once

#include <stdio.h>

#if !defined(_WIN32)
#include <strings.h>
#endif

#include "doomtype.h"
#include "i_video.h"
#include "m_controls.h"

Expand Down
1 change: 1 addition & 0 deletions src/g_game.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

#include "d_event.h"
#include "i_video.h"
#include "w_file.h"

#define NUMKEYS 512

Expand Down
1 change: 1 addition & 0 deletions src/i_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

#pragma once

#include "d_event.h"
#include "doomdef.h"
#include "m_misc.h"

Expand Down
2 changes: 2 additions & 0 deletions src/i_winmusic.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

#pragma once

#include "doomtype.h"

bool I_Windows_InitMusic(void);
void I_Windows_PlaySong(bool looping);
void I_Windows_PauseSong(void);
Expand Down
1 change: 1 addition & 0 deletions src/info.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#pragma once

#include "doomtype.h"
#include "d_think.h"
#include "states.h"

#define NO_ALTSPEED -1
Expand Down
1 change: 1 addition & 0 deletions src/m_fixed.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#pragma once

#include "doomdef.h"
#include "doomtype.h"

#undef ABS
#undef MIN
Expand Down
1 change: 1 addition & 0 deletions src/mus2mid.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

#pragma once

#include "doomtype.h"
#include "memio.h"

bool mus2mid(MEMFILE *musinput, MEMFILE *midioutput);
4 changes: 4 additions & 0 deletions src/p_pspr.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@

#pragma once

// Basic data types.
// Needs fixed point, and BAM angles.
#include "tables.h"

//
// Needs to include the precompiled
// sprite animation tables.
Expand Down
1 change: 1 addition & 0 deletions src/r_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

#pragma once

#include "r_defs.h"
#include "r_patch.h"
#include "r_state.h"

Expand Down
1 change: 1 addition & 0 deletions src/v_video.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#pragma once

#include "r_data.h"
#include "w_file.h"

//
// VIDEO
Expand Down

0 comments on commit e48fce5

Please sign in to comment.