summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/cbasetypes.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h
index 58acad2c7..f36c7abf4 100644
--- a/src/common/cbasetypes.h
+++ b/src/common/cbasetypes.h
@@ -218,11 +218,19 @@ typedef uintptr_t uintptr;
#define strtoull _strtoui64
#endif
-// keyword replacement in windows
+// keyword replacement
#ifdef _WIN32
+// For MSVC (windows)
#define inline __inline
+#define forceinline __forceinline
+#define ra_align(n) __declspec(align(n))
+#else
+// For GCC
+#define forceinline __attribute__((always_inline)) inline
+#define ra_align(n) __attribute__(( aligned(n) ))
#endif
+
/////////////////////////////
// for those still not building c++
#ifndef __cplusplus