Compile error on VS 2019 with calling convention=stdcall
Hello, I tried to build the Win32 (Release Static) freetype solution in Visual Studio 2019 and compiles with no errors. I noticed the solution uses the Calling Convention cdecl.
However, our app expects symbols using Calling Convention stdcall. Changing the freetype solution from cdecl to stdcall causes compile errors only for Win32 (it works fine for x64). May I know the reason why or will it be possible to be fixed?
Replication Steps:
- Freetype version: Latest (2.10.4)
- Visual Studio: 2019
- Open project: builds/windows/vc2010/freetype.sln
- Select Release Static, Win32 as build configuration
- Change Calling Convention to stdcall
Severity Code Description Project File Line Suppression State Error C2440 'function': cannot convert from 'int (*)(const void *,const void *)' to '_CoreCrtNonSecureSearchSortCompareFunction' (compiling source file ..\..\..\src\base\ftbase.c) freetype C:\Users\Mau Clores\Downloads\freetype-2.10.4\src\base\ftrfork.c 298 Error C2440 'function': cannot convert from 'int (*)(const void *,const void *)' to '_CoreCrtNonSecureSearchSortCompareFunction' (compiling source file ..\..\..\src\bdf\bdf.c) freetype C:\Users\Mau Clores\Downloads\freetype-2.10.4\src\bdf\bdflib.c 1387 Error C2440 'function': cannot convert from 'int (*)(const void *,const void *)' to '_CoreCrtNonSecureSearchSortCompareFunction' (compiling source file ..\..\..\src\psaux\psaux.c) freetype C:\Users\Mau Clores\Downloads\freetype-2.10.4\src\psaux\afmparse.c 772 Error C2440 'function': cannot convert from 'int (*)(const void *,const void *)' to '_CoreCrtNonSecureSearchSortCompareFunction' (compiling source file ..\..\..\src\sfnt\sfnt.c) freetype C:\Users\Mau Clores\Downloads\freetype-2.10.4\src\sfnt\sfwoff.c 248 Error C2440 'function': cannot convert from 'int (*)(const void *,const void *)' to '_CoreCrtNonSecureSearchSortCompareFunction' (compiling source file ..\..\..\src\sfnt\sfnt.c) freetype C:\Users\Mau Clores\Downloads\freetype-2.10.4\src\sfnt\sfwoff2.c 2210 Error C2440 'function': cannot convert from 'int (*)(const void *,const void *)' to '_CoreCrtNonSecureSearchSortCompareFunction' freetype C:\Users\Mau Clores\Downloads\freetype-2.10.4\src\psnames\psmodule.c 403 Error C2440 'function': cannot convert from 'int (*)(const void *,const void *)' to '_CoreCrtNonSecureSearchSortCompareFunction' (compiling source file ..\..\..\src\type1\type1.c) freetype C:\Users\Mau Clores\Downloads\freetype-2.10.4\src\type1\t1afm.c 219