mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2025-12-25 07:40:04 +01:00
Fix Cygwin visibility attributes.
Reported as compilation warnings in #1329. * include/freetype/config/public-macros.h: Check __CYGWIN__. * include/freetype/internal/compiler-macros.h: Ditto.
This commit is contained in:
parent
bff01fbdcc
commit
c26c150cf2
2 changed files with 4 additions and 4 deletions
|
|
@ -62,8 +62,8 @@ FT_BEGIN_HEADER
|
|||
* because it is needed by `FT_EXPORT`.
|
||||
*/
|
||||
|
||||
/* Visual C, mingw */
|
||||
#if defined( _WIN32 )
|
||||
/* Visual C, MinGW, Cygwin */
|
||||
#if defined( _WIN32 ) || defined( __CYGWIN__ )
|
||||
|
||||
#if defined( FT2_BUILD_LIBRARY ) && defined( DLL_EXPORT )
|
||||
#define FT_PUBLIC_FUNCTION_ATTRIBUTE __declspec( dllexport )
|
||||
|
|
|
|||
|
|
@ -128,8 +128,8 @@ FT_BEGIN_HEADER
|
|||
* before a function declaration.
|
||||
*/
|
||||
|
||||
/* Visual C, mingw */
|
||||
#if defined( _WIN32 )
|
||||
/* Visual C, MinGW, Cygwin */
|
||||
#if defined( _WIN32 ) || defined( __CYGWIN__ )
|
||||
#define FT_INTERNAL_FUNCTION_ATTRIBUTE /* empty */
|
||||
|
||||
/* gcc, clang */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue