Bugfix for FriBidi regarding g_assert

Volker Grabsch <[email protected]> Wed, 24 Feb 2010 17:47:10 +0100
Newsgroups gmane.comp.internationalization.fribidi
Message-ID <20100224164710.GA9081@flap>
Dear FriBidi developers,

I just found a fixed a bug that appears when FriBidi is built
with glib support. It doesn't include the header in which
the g_assert() macro is defined, resulting in warnings about
an implicit definition of g_assert() and linker errors about
a missing _g_assert symbol.

The attached patch fixes that.


Greets,

    Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR

_______________________________________________
fribidi mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/fribidi
fribidi-fix-gassert.patch (text/x-diff, 569 B)
This file is part of mingw-cross-env.
See doc/index.html for further information.

diff -ru fribidi-0.19.2.orig/lib/fribidi-common.h fribidi-0.19.2/lib/fribidi-common.h
--- fribidi-0.19.2.orig/lib/fribidi-common.h	2007-04-05 18:13:24.000000000 +0200
+++ fribidi-0.19.2/lib/fribidi-common.h	2010-02-24 17:20:47.000000000 +0100
@@ -63,6 +63,7 @@
 #if FRIBIDI_USE_GLIB+0
 # ifndef __FRIBIDI_DOC
 #  include <glib/gmacros.h>
+#  include <glib/gtestutils.h>
 # endif	/* !__FRIBIDI_DOC */
 # define FRIBIDI_BEGIN_DECLS		G_BEGIN_DECLS
 # define FRIBIDI_END_DECLS		G_END_DECLS