From a4c8aa5e02277cab252e6b9379404b3c792e7e89 Mon Sep 17 00:00:00 2001 From: Niadb <34917535+Niadb@users.noreply.github.com> Date: Fri, 19 Jun 2020 03:31:47 -0600 Subject: [PATCH] Add files via upload --- lib/common/compiler.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/common/compiler.h b/lib/common/compiler.h index 95e948352..825f01d80 100644 --- a/lib/common/compiler.h +++ b/lib/common/compiler.h @@ -27,6 +27,7 @@ # define FORCE_INLINE_ATTR __attribute__((always_inline)) #elif defined(_MSC_VER) # define FORCE_INLINE_ATTR __forceinline + #else # define FORCE_INLINE_ATTR #endif @@ -38,6 +39,12 @@ #endif +#if defined(_MSC_VER) +# define WIN_CDECL __cdecl +#else +# define WIN_CDECL +#endif + /** * FORCE_INLINE_TEMPLATE is used to define C "templates", which take constant * parameters. They must be inlined for the compiler to eliminate the constant -- 2.47.2