projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8da719a
)
2010-08-02 Zoltan Varga <vargaz@gmail.com>
author
Zoltan Varga
<vargaz@gmail.com>
Mon, 2 Aug 2010 19:22:39 +0000
(21:22 +0200)
committer
Zoltan Varga
<vargaz@gmail.com>
Mon, 2 Aug 2010 19:22:39 +0000
(21:22 +0200)
* test/test.c (FAILED): Fix linking on systems without vasprintf.
eglib/test/test.c
patch
|
blob
|
history
diff --git
a/eglib/test/test.c
b/eglib/test/test.c
index 9e23e37a8e014445ca591583666e4241c163283a..6dd7bf47469a891c8ca708bf157b99f04936fd02 100644
(file)
--- a/
eglib/test/test.c
+++ b/
eglib/test/test.c
@@
-177,6
+177,11
@@
FAILED(const gchar *format, ...)
va_list args;
gint n;
+#if !defined(HAVE_VASPRINTF) && !defined(_EGLIB_MAJOR)
+ /* We are linked against the real glib, no vasprintf */
+ g_assert_not_reached ();
+ return NULL;
+#else
va_start(args, format);
n = vasprintf(&ret, format, args);
va_end(args);
@@
-188,6
+193,7
@@
FAILED(const gchar *format, ...)
last_result = ret;
return ret;
+#endif
}
gdouble