# define ASSUME_UTF8 1
#endif
-#if !(defined (WIN32) && defined (ASSUME_UTF8))
+#if !(defined (WIN32) && defined (UNDER_CE) && defined (ASSUME_UTF8))
# define USE_ICONV 1
#endif
#endif
}
-#ifdef WIN32
+#if defined (WIN32) || defined (UNDER_CE)
static char *MB2MB( const char *string, UINT fromCP, UINT toCP )
{
char *out;
if( locale == NULL )
return NULL;
-#ifndef WIN32
+#if !(defined WIN32 || defined (UNDER_CE))
# ifdef USE_ICONV
if( from_locale.hd != (vlc_iconv_t)(-1) )
{
if( utf8 == NULL )
return NULL;
-#ifndef WIN32
+#if !(defined (WIN32) || defined (UNDER_CE))
# ifdef USE_ICONV
if( to_locale.hd != (vlc_iconv_t)(-1) )
{
*****************************************************************************/
FILE *utf8_fopen( const char *filename, const char *mode )
{
-#if !defined WIN32 /*|| !defined UNICODE*/
+#if !(defined (WIN32) || defined (UNDER_CE))
const char *local_name = ToLocale( filename );
if( local_name != NULL )
*****************************************************************************/
int utf8_mkdir( const char *dirname )
{
-#if defined( UNDER_CE ) || defined( WIN32 )
+#if defined (UNDER_CE) || defined (WIN32)
wchar_t wname[MAX_PATH];
char mod[MAX_PATH];
int i;