jeyzu pushed a commit to branch master.
commit 3912f569b0bf0771d4bcfc45e89c020aa5d10f44
Author: Jérémy Zurcher <[email protected]>
Date: Wed May 15 16:22:24 2013 +0200
add glib-2 and librsvg version checks
---
src/bin/svg/main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/bin/svg/main.c b/src/bin/svg/main.c
index 366fe60..89a48fa 100644
--- a/src/bin/svg/main.c
+++ b/src/bin/svg/main.c
@@ -8,7 +8,9 @@
#include <Eina.h>
#include <librsvg/rsvg.h>
+#if !LIBRSVG_CHECK_VERSION(2,36,2)
#include <librsvg/rsvg-cairo.h>
+#endif
#define DATA32 unsigned int
@@ -57,7 +59,9 @@ static int
_svg_init(const char *file)
{
#ifdef HAVE_SVG_2_36
+# if !defined(GLIB_VERSION_2_36)
g_type_init();
+# endif
#else
rsvg_init();
#endif
--
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d