Skip to content

Commit

Permalink
add missing pragma once, cleanup include headers
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Dec 13, 2023
1 parent 00954f1 commit a25535d
Show file tree
Hide file tree
Showing 24 changed files with 17 additions and 11 deletions.
1 change: 0 additions & 1 deletion core/hw/holly/sb.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#pragma once
#include "types.h"
#include "hw/hwreg.h"
#include <array>

u32 sb_ReadMem(u32 addr);
void sb_WriteMem(u32 addr, u32 data);
Expand Down
1 change: 1 addition & 0 deletions core/hw/mem/mem_watch.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "types.h"
#include "addrspace.h"
#include "hw/aica/aica_if.h"
Expand Down
1 change: 1 addition & 0 deletions core/hw/naomi/systemsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "naomi_roms.h"
#include "stdclass.h"
#include <errno.h>
#include <deque>

#ifdef DEBUG_SERIAL
#define SERIAL_LOG(...) DEBUG_LOG(NAOMI, __VA_ARGS__)
Expand Down
2 changes: 0 additions & 2 deletions core/hw/naomi/systemsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include "hw/naomi/m4cartridge.h"
#include "hw/flashrom/at93cxx.h"
#include "serialize.h"
#include <deque>
#include <array>
#include <memory>
#include <libchdr/chd.h>

Expand Down
1 change: 1 addition & 0 deletions core/hw/sh4/dyna/ssa.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
You should have received a copy of the GNU General Public License
along with reicast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <cstdio>
#include <set>
#include <map>
Expand Down
1 change: 0 additions & 1 deletion core/hw/sh4/modules/fastmmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
#include "mmu.h"
#include "hw/sh4/sh4_if.h"
#include "hw/sh4/sh4_interrupts.h"
#include "hw/sh4/sh4_core.h"
#include "types.h"

Expand Down
1 change: 0 additions & 1 deletion core/hw/sh4/modules/mmu.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once
#include "types.h"
#include "hw/sh4/sh4_mmr.h"
#include "cfg/option.h"
#include "hw/sh4/dyna/ngen.h"

//Translation Types
Expand Down
1 change: 1 addition & 0 deletions core/hw/sh4/modules/wince.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with reicast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifdef TRACE_WINCE_SYSCALLS
#include "hw/sh4/sh4_sched.h"

Expand Down
1 change: 0 additions & 1 deletion core/hw/sh4/sh4_interpreter.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once
#include "types.h"
#include "sh4_if.h"

#undef sh4op
#define sh4op(str) void DYNACALL str (u32 op)
Expand Down
1 change: 0 additions & 1 deletion core/hw/sh4/sh4_mem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "sh4_mmr.h"
#include "hw/pvr/elan.h"
#include "hw/pvr/pvr_mem.h"
#include "cfg/option.h"
#include "hw/mem/addrspace.h"
#include "hw/sh4/modules/mmu.h"

Expand Down
1 change: 1 addition & 0 deletions core/linux-dist/evdev_gamepad.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#include "evdev.h"
#include "input/gamepad_device.h"
#include "oslib/oslib.h"
Expand Down
1 change: 1 addition & 0 deletions core/log/StringUtil.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#include <locale>

#ifdef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion core/lua/lua.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#include "build.h"
#pragma once
#include <string>

namespace lua
Expand Down
2 changes: 1 addition & 1 deletion core/network/ggpo.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "types.h"
#include <future>
#include <string>

struct MapleInputState;

Expand Down
1 change: 1 addition & 0 deletions core/network/net_serial_maxspeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "hw/sh4/modules/modules.h"
#include "net_platform.h"
#include "cfg/option.h"
Expand Down
1 change: 1 addition & 0 deletions core/network/null_modem.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "hw/sh4/modules/modules.h"
#include "net_platform.h"
#include "cfg/option.h"
Expand Down
1 change: 0 additions & 1 deletion core/oslib/oslib.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once
#include "types.h"
#include <vector>
#if defined(__SWITCH__)
#include <malloc.h>
#endif
Expand Down
1 change: 1 addition & 0 deletions core/oslib/virtmem.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#include "types.h"

namespace virtmem
Expand Down
1 change: 1 addition & 0 deletions core/rend/boxart/gamesdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "scraper.h"
#include "json.hpp"

Expand Down
1 change: 1 addition & 0 deletions core/rend/boxart/http_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <string>
#include <vector>
#include <cctype>
Expand Down
1 change: 1 addition & 0 deletions core/rend/vulkan/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
You should have received a copy of the GNU General Public License
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "vulkan.h"

class ShaderCompiler
Expand Down
1 change: 1 addition & 0 deletions core/rend/vulkan/vulkan_renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "vulkan.h"
#include "hw/pvr/Renderer_if.h"
#include "hw/pvr/ta.h"
Expand Down
1 change: 1 addition & 0 deletions core/sdl/sdl_gamepad.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#include "input/gamepad_device.h"
#include "input/mouse.h"
#include "oslib/oslib.h"
Expand Down
2 changes: 1 addition & 1 deletion core/windows/rawinput.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
You should have received a copy of the GNU General Public License
along with Flycast. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "build.h"
#ifndef TARGET_UWP
#include "input/gamepad_device.h"
#include "input/keyboard_device.h"
#include "input/mouse.h"
#include <windows.h>
Expand Down

0 comments on commit a25535d

Please sign in to comment.