medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 4bf7286b953e9add20b869c0b57d598b4792452a
parent 6e7440f1c1cb3c30516d7bfaf7acbcb730e2e363
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Jun 11 22:36:56 +0100

Add platform_inline.h

Diffstat:
platform_inline.h | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/platform_inline.h b/platform_inline.h @@ -0,0 +1,14 @@ +#ifndef _PLATFORM_INLINE_H_ +#define _PLATFORM_INLINE_H_ + +#if defined( __GNUC__ ) +#define FORCE_INLINE __attribute__((always_inline)) +#elif defined( _MSC_VER ) +#define FORCE_INLINE __forceinline +#elif +#error unrecognised compiler +#endif + +#define forceinline inline FORCE_INLINE + +#endif // _PLATFORM_INLINE_H_