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.
This commit is contained in:
Ozkan Sezer 2022-01-15 22:44:28 -05:00 committed by Alexei Podtelezhnikov
parent 5e227133c1
commit 3f6497bdc5
1 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,8 @@ FT_BEGIN_HEADER
#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