/*
* Convert message to string
*/
-#if defined SYS_BEOS || defined SYS_SOLARIS
+#ifdef HAVE_VASPRINTF
+ vasprintf( &psz_str, psz_format, ap );
+#else
psz_str = (char*) malloc( strlen(psz_format) + INTF_MAX_MSG_SIZE );
vsprintf( psz_str, psz_format, ap );
-#else
- vasprintf( &psz_str, psz_format, ap );
#endif
if( psz_str == NULL )
{
/*
* Convert message to string
*/
-#if defined SYS_BEOS || defined SYS_SOLARIS
+#ifdef HAVE_VASPRINTF
+ vasprintf( &psz_str, psz_format, ap );
+#else
psz_str = (char*) malloc( INTF_MAX_MSG_SIZE );
vsprintf( psz_str, psz_format, ap );
-#else
- vasprintf( &psz_str, psz_format, ap );
#endif
if( psz_str == NULL )
{
}
#endif
+