Fix use of FontConfig on non linux platforms (FreeBSD, etc.)

just define USE_FC in the Makefile to have text.c compiled with Fontconfig support
This commit is contained in:
Thomas Bernard
2017-12-20 10:50:47 +01:00
committed by Adrien Destugues
parent c65dc04194
commit 589a84fd3d
2 changed files with 4 additions and 6 deletions

View File

@@ -40,7 +40,7 @@
#if defined(__CAANOO__) || defined(__WIZ__) || defined(__GP2X__)
// No fontconfig
#elif defined(__linux__)
#elif defined(USE_FC) && !defined(NOTTF)
#include <fontconfig/fontconfig.h>
#endif
#endif
@@ -327,11 +327,8 @@ void Init_text(void)
#elif defined(__CAANOO__) || defined(__WIZ__) || defined(__GP2X__)
// No fontconfig : Only use fonts from Grafx2
#elif defined(__linux__)
#elif defined(USE_FC)
#ifndef NOTTF
#define USE_FC
#ifdef USE_FC
{
FcStrList* dirs;
FcChar8 * fdir;
@@ -345,7 +342,6 @@ void Init_text(void)
FcStrListDone(dirs);
}
#endif
#endif
#elif defined(__amigaos4__) || defined(__amigaos__)
#ifndef NOTTF