Fixed eglib test build error
[mono.git] / eglib / test / test.c
index 6dd7bf47469a891c8ca708bf157b99f04936fd02..7c870e9c7665a3a074cf4763ca3ed33271b90716 100644 (file)
 #include "test.h"
 
 extern gint global_passed, global_tests;
-
-#ifndef HAVE_VASPRINTF
-  /* systen does not provide a vasprintf function, use the one
-     provided within eglib itself */
-extern int vasprintf(char **ret, const char *format, va_list ap);
-#endif
-
 static gchar *last_result = NULL;
 
 gboolean 
@@ -183,7 +176,7 @@ FAILED(const gchar *format, ...)
        return NULL;
 #else
        va_start(args, format);
-       n = vasprintf(&ret, format, args);
+       n = g_vasprintf(&ret, format, args);
        va_end(args);
 
        if(n == -1) {