-/*****************************************************************************
- * atof: convert a string to a double.
- *****************************************************************************/
-#if !defined( HAVE_ATOF )
-double vlc_atof( const char *nptr )
-{
- double f_result;
- wchar_t *psz_tmp = NULL;
- int i_len = strlen( nptr ) + 1;
-
- psz_tmp = malloc( i_len * sizeof(wchar_t) );
- if( !psz_tmp )
- return NULL;
- MultiByteToWideChar( CP_ACP, 0, nptr, -1, psz_tmp, i_len );
- f_result = wcstod( psz_tmp, NULL );
- free( psz_tmp );
-
- return f_result;
-}
-#endif
-