Am 12.01.2018 um 18:30 schrieb Hin-Tak Leung:
> 
> 
>  Message: 3
>  Date: Fri, 12 Jan 2018 09:32:59 +0100
>  From: Martin Gieseking <[email protected]>
>  To: freetype-devel <[email protected]>
>  Subject: Re: [ft-devel] FreeType DLL
>  support
>   
>> I would also suggest to replace
>>    #ifdef _MSC_VER
>>  with
>>    #ifdef _WIN32
>> in order to support other Windows
>> compilers too.
>  
>> Instead of _DLL it might be better to
>> use DLL_EXPORT because it's 
>> automatically defined when configuring
>> the build of a shared library on 
>> Windows with MinGW or Cygwin.
>  
> No need. The dllexport mechanism is entirely Microsoft compiler-specific - 
> gcc on mingw/Cygwin uses a different symbol scanning and look-up mechanism 
> and does not need those DLL_EXPORT/DLL_IMPORT hacks.


Not really. dllexport/dllimport is platform- and not compiler-specific.
GCC and Clang on MinGW also support them to declare the symbols that are
supposed to be exported by the DLL and adapt the symbol names
accordingly. In order to create/access DLLs through this mechanism
across compilers, the declarations should be added independently from
the compiler.


_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to