From: Niadb <34917535+Niadb@users.noreply.github.com> Date: Fri, 19 Jun 2020 09:31:47 +0000 (-0600) Subject: Add files via upload X-Git-Tag: v1.4.7~132^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4c8aa5e02277cab252e6b9379404b3c792e7e89;p=thirdparty%2Fzstd.git Add files via upload --- 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