From 4381f9acc118d41a71dc9c908b5e43685cfb6ee2 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 30 Dec 2014 18:46:43 -0800 Subject: [PATCH] SCP: Added definition of SIM_INLINE when compiling with MSVC, gcc and clang --- sim_defs.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sim_defs.h b/sim_defs.h index b4b81a3d..9c40b7ec 100644 --- a/sim_defs.h +++ b/sim_defs.h @@ -246,7 +246,13 @@ typedef uint32 t_addr; /* Stubs for inlining */ -#define SIM_INLINE +#if defined(_MSC_VER) +#define SIM_INLINE _inline +#elif defined(__GNUC__) +#define SIM_INLINE inline +#else +#define SIM_INLINE +#endif /* System independent definitions */