aboutsummaryrefslogtreecommitdiff
path: root/common/scummsys.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/scummsys.h')
-rw-r--r--common/scummsys.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/common/scummsys.h b/common/scummsys.h
index a9c5fb3266..bdb11344bc 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -202,7 +202,7 @@
#ifndef __GNUC__
#define FORCEINLINE __forceinline
- #define NORETURN _declspec(noreturn)
+ #define NORETURN __declspec(noreturn)
#endif
#define PLUGIN_EXPORT __declspec(dllexport)
@@ -224,7 +224,7 @@
#define SCUMM_LITTLE_ENDIAN
#define FORCEINLINE __forceinline
- #define NORETURN _declspec(noreturn)
+ #define NORETURN __declspec(noreturn)
#define PLUGIN_EXPORT __declspec(dllexport)
typedef signed char int8_t;
@@ -380,8 +380,12 @@
//
#if defined(__GNUC__)
#define NORETURN __attribute__((__noreturn__))
- #define PACKED_STRUCT __attribute__((packed))
- #define GCC_PRINTF(x,y) __attribute__((format(printf, x, y)))
+ #define PACKED_STRUCT __attribute__((__packed__))
+ #define GCC_PRINTF(x,y) __attribute__((__format__(printf, x, y)))
+
+ #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
+ #define FORCEINLINE __attribute__((__always_inline__)) inline
+ #endif
#else
#define PACKED_STRUCT
#define GCC_PRINTF(x,y)