From 6e6ee1f8a37f0ff9b4ea6524aba5668ef79b861a Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Tue, 2 Feb 2010 23:40:53 +0000 Subject: [PATCH] Trying to get it to build without Pango. --- src/fonts.c | 2 ++ src/fonts.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/fonts.c b/src/fonts.c index 9214537e6..af13396e0 100644 --- a/src/fonts.c +++ b/src/fonts.c @@ -235,6 +235,7 @@ TuxPaint_Font *load_locale_font(TuxPaint_Font * fallback, int size) } #endif +#ifndef NO_SDLPANGO if (!ret) { ret = try_alternate_font(size); @@ -254,6 +255,7 @@ TuxPaint_Font *load_locale_font(TuxPaint_Font * fallback, int size) } } } +#endif return ret ? ret : fallback; } #endif diff --git a/src/fonts.h b/src/fonts.h index b8918eb2f..2434bb42c 100644 --- a/src/fonts.h +++ b/src/fonts.h @@ -106,6 +106,7 @@ int TuxPaint_Font_FontHeight(TuxPaint_Font * tpf); #ifdef FORKED_FONTS void reliable_write(int fd, const void *buf, size_t count); +static void reliable_read(int fd, void *buf, size_t count); void run_font_scanner(SDL_Surface * screen, const char *restrict const locale); void receive_some_font_info(SDL_Surface * screen); #endif