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:
Carlo Bramini 2025-05-04 07:22:46 -04:00 committed by Alexei Podtelezhnikov
parent bff01fbdcc
commit c26c150cf2
2 changed files with 4 additions and 4 deletions

View file

@ -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 )

View file

@ -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 */