From a69bd937c3087a8835db86ed7c0716319b4aea85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sun, 28 Oct 2018 13:45:46 +0100 Subject: [PATCH] Add missing include guards --- core/deps/chdr/coretypes.h | 3 ++- core/hw/arm7/arm-new.h | 2 ++ core/linux/context.h | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/deps/chdr/coretypes.h b/core/deps/chdr/coretypes.h index ce2bb2a39..a22860d17 100644 --- a/core/deps/chdr/coretypes.h +++ b/core/deps/chdr/coretypes.h @@ -1,3 +1,4 @@ +#pragma once #include "types.h" @@ -15,4 +16,4 @@ typedef s8 INT8; #define INLINE inline #endif -#define ARRAY_LENGTH(x) (sizeof(x)/sizeof(x[0])) \ No newline at end of file +#define ARRAY_LENGTH(x) (sizeof(x)/sizeof(x[0])) diff --git a/core/hw/arm7/arm-new.h b/core/hw/arm7/arm-new.h index c670b0278..40e48003a 100644 --- a/core/hw/arm7/arm-new.h +++ b/core/hw/arm7/arm-new.h @@ -17,6 +17,8 @@ // along with this program; if not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#pragma once + #ifdef BKPT_SUPPORT #define CONSOLE_OUTPUT(a,b) \ extern void (*dbgOutput)(char *, u32);\ diff --git a/core/linux/context.h b/core/linux/context.h index 667be6a7d..c97de30e9 100644 --- a/core/linux/context.h +++ b/core/linux/context.h @@ -1,3 +1,5 @@ +#pragma once + #include "types.h"