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