|
@@ -5,12 +5,14 @@
|
|
|
|
|
|
|
|
#pragma once
|
|
#pragma once
|
|
|
|
|
|
|
|
-#ifdef _MSC_VER
|
|
|
|
|
|
|
+#include "platform.h"
|
|
|
|
|
+
|
|
|
|
|
+#ifdef CROWN_COMPILER_MSVC
|
|
|
#define CE_ALIGNOF(x) __alignof(x)
|
|
#define CE_ALIGNOF(x) __alignof(x)
|
|
|
#define CE_EXPORT __declspec(dllexport)
|
|
#define CE_EXPORT __declspec(dllexport)
|
|
|
#define CE_INLINE __inline
|
|
#define CE_INLINE __inline
|
|
|
#define CE_THREAD __declspec(thread)
|
|
#define CE_THREAD __declspec(thread)
|
|
|
-#elif defined __GNUG__
|
|
|
|
|
|
|
+#elif CROWN_COMPILER_GCC
|
|
|
#define CE_ALIGNOF(x) __alignof__(x)
|
|
#define CE_ALIGNOF(x) __alignof__(x)
|
|
|
#define CE_EXPORT __attribute__ ((visibility("default")))
|
|
#define CE_EXPORT __attribute__ ((visibility("default")))
|
|
|
#define CE_INLINE inline
|
|
#define CE_INLINE inline
|