shithub: freetype+ttf2subf

Download patch

ref: 3f6497bdc53bf19c1ac07cfbb121d7c51966b0d7
parent: 5e227133c16c1c9ff41a18a2b411a20afe81be6c
author: Ozkan Sezer <sezeroz@gmail.com>
date: Sat Jan 15 17:44:28 EST 2022

Add Watcom C/C++ calling.

In the unlikely case the source is built with OpenWatcom's -ec?
switches to enforce a calling convention, the qsort() compare
function must still be set to __watcall.

* include/freetype/internal/compiler-macros.h (FT_COMPARE_DEF):
Updated.

git/fs: mount .git/fs: mount/attach disallowed
--- a/include/freetype/internal/compiler-macros.h
+++ b/include/freetype/internal/compiler-macros.h
@@ -303,6 +303,8 @@
 #define FT_COMPARE_DEF( x )  FT_CALLBACK_DEF( x ) __attribute__(( cdecl ))
 #elif defined( _MSC_VER ) && defined( _M_IX86 )
 #define FT_COMPARE_DEF( x )  FT_CALLBACK_DEF( x ) __cdecl
+#elif defined( __WATCOMC__ ) && __WATCOMC__ >= 1240
+#define FT_COMPARE_DEF( x )  FT_CALLBACK_DEF( x ) __watcall
 #else
 #define FT_COMPARE_DEF( x )  FT_CALLBACK_DEF( x )
 #endif