[gnome-games] libgames-support: Build fix for !HAVE_RSVG
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] libgames-support: Build fix for !HAVE_RSVG
- Date: Thu, 9 Jul 2009 23:12:31 +0000 (UTC)
commit d08e1c337937a43814fa039ee9b7d9d8045f19e3
Author: Christian Persch <chpe gnome org>
Date: Sat Jul 4 00:03:02 2009 +0200
libgames-support: Build fix for !HAVE_RSVG
The font options are only needed in the HAVE_RSVG case, so just #ifdef
this code out on !HAVE_RSVG.
libgames-support/games-preimage.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgames-support/games-preimage.c b/libgames-support/games-preimage.c
index 391d586..0c950d9 100644
--- a/libgames-support/games-preimage.c
+++ b/libgames-support/games-preimage.c
@@ -330,6 +330,7 @@ void
games_preimage_set_font_options (GamesPreimage * preimage,
const cairo_font_options_t * font_options)
{
+#ifdef HAVE_RSVG
g_return_if_fail (GAMES_IS_PREIMAGE (preimage));
if (preimage->font_options) {
@@ -341,6 +342,7 @@ games_preimage_set_font_options (GamesPreimage * preimage,
} else {
preimage->font_options = NULL;
}
+#endif /* HAVE_RSVG */
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]