ref: 7f7bf6f0f0b707f84594a424d5e15fda8275887b
parent: 7eb9a9dbbee9c8513402c388772152b053f25289
author: Alexei Podtelezhnikov <[email protected]>
date: Fri Jan 14 15:33:28 EST 2022
* include/freetype/internal/compiler-macros.h [FT_COMPARE_DEF]: Tighten. This works around Watcom C library using __watcall.
--- a/include/freetype/internal/compiler-macros.h
+++ b/include/freetype/internal/compiler-macros.h
@@ -299,9 +299,9 @@
#define FT_CALLBACK_DEF( x ) static x
#endif
-#if defined( __i386__ )
+#if defined( __GNUC__ ) && defined( __i386__ )
#define FT_COMPARE_DEF( x ) FT_CALLBACK_DEF( x ) __attribute__(( cdecl ))
-#elif defined( _M_IX86 )
+#elif defined( _MSC_VER ) && defined( _M_IX86 )
#define FT_COMPARE_DEF( x ) FT_CALLBACK_DEF( x ) __cdecl
#else
#define FT_COMPARE_DEF( x ) FT_CALLBACK_DEF( x )