From 70ebfb831b334bf4fa0d07ba9d264cf42386df6b Mon Sep 17 00:00:00 2001 From: Alessandro De Laurenzis Date: Sat, 29 Oct 2022 05:28:12 +0200 Subject: [PATCH] Define Cairo functions prototypes only when support is enabled --- graphics/graphicsInt.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graphics/graphicsInt.h b/graphics/graphicsInt.h index 8b7f55a3..36429843 100644 --- a/graphics/graphicsInt.h +++ b/graphics/graphicsInt.h @@ -92,7 +92,6 @@ extern void grInformDriver(); /* C99 compat */ extern bool GrReadGlyphs(); extern bool GrBoxOutline(); -extern bool grtcairoLoadFont(); extern int xloop_create(); extern bool groglLoadFont(); extern void GrX11Close(); @@ -100,4 +99,8 @@ extern bool grx11LoadFont(); extern void xloop_end(); extern bool groglPreLoadFont(); +#ifdef CAIRO +extern bool grtcairoLoadFont(); +#endif + #endif /* _GRAPHICSINT_H */