[gnome-games] [libgames-support] Return card size assertion wrapped in gir-scanner ifdef
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] [libgames-support] Return card size assertion wrapped in gir-scanner ifdef
- Date: Thu, 16 Jul 2009 22:31:21 +0000 (UTC)
commit 7f4bc8fed6d7dff30b5a2738c686e1cf3b8e501f
Author: Tim Horton <hortont svn gnome org>
Date: Thu Jul 2 00:17:46 2009 -0400
[libgames-support] Return card size assertion wrapped in gir-scanner ifdef
libgames-support/games-card.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgames-support/games-card.h b/libgames-support/games-card.h
index 748f0ce..0084a16 100644
--- a/libgames-support/games-card.h
+++ b/libgames-support/games-card.h
@@ -51,8 +51,9 @@ typedef union {
} attr;
} GNOME_GAMES_GNUC_PACKED Card;
-// FIXME: not even remotely introspectable
-//typedef int _games_card_size_assert[sizeof (Card) == sizeof (guint8) ? 1 : -1]; /* static assertion */
+#ifndef __GI_SCANNER__
+typedef int _games_card_size_assert[sizeof (Card) == sizeof (guint8) ? 1 : -1]; /* static assertion */
+#endif
#define CARD(c) ((Card) c)
#define CARD_UINT(c) (c.value)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]