Commit 19ae2576 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Some WinCE fixes

parent 1c352886
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
# define ASSUME_UTF8 1 # define ASSUME_UTF8 1
#endif #endif
#if !(defined (WIN32) && defined (ASSUME_UTF8)) #if !(defined (WIN32) && defined (UNDER_CE) && defined (ASSUME_UTF8))
# define USE_ICONV 1 # define USE_ICONV 1
#endif #endif
...@@ -118,7 +118,7 @@ void LocaleDeinit( void ) ...@@ -118,7 +118,7 @@ void LocaleDeinit( void )
#endif #endif
} }
#ifdef WIN32 #if defined (WIN32) || defined (UNDER_CE)
static char *MB2MB( const char *string, UINT fromCP, UINT toCP ) static char *MB2MB( const char *string, UINT fromCP, UINT toCP )
{ {
char *out; char *out;
...@@ -150,7 +150,7 @@ char *FromLocale( const char *locale ) ...@@ -150,7 +150,7 @@ char *FromLocale( const char *locale )
if( locale == NULL ) if( locale == NULL )
return NULL; return NULL;
#ifndef WIN32 #if !(defined WIN32 || defined (UNDER_CE))
# ifdef USE_ICONV # ifdef USE_ICONV
if( from_locale.hd != (vlc_iconv_t)(-1) ) if( from_locale.hd != (vlc_iconv_t)(-1) )
{ {
...@@ -219,7 +219,7 @@ char *ToLocale( const char *utf8 ) ...@@ -219,7 +219,7 @@ char *ToLocale( const char *utf8 )
if( utf8 == NULL ) if( utf8 == NULL )
return NULL; return NULL;
#ifndef WIN32 #if !(defined (WIN32) || defined (UNDER_CE))
# ifdef USE_ICONV # ifdef USE_ICONV
if( to_locale.hd != (vlc_iconv_t)(-1) ) if( to_locale.hd != (vlc_iconv_t)(-1) )
{ {
...@@ -281,7 +281,7 @@ void LocaleFree( const char *str ) ...@@ -281,7 +281,7 @@ void LocaleFree( const char *str )
*****************************************************************************/ *****************************************************************************/
FILE *utf8_fopen( const char *filename, const char *mode ) 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 ); const char *local_name = ToLocale( filename );
if( local_name != NULL ) if( local_name != NULL )
...@@ -313,7 +313,7 @@ FILE *utf8_fopen( const char *filename, const char *mode ) ...@@ -313,7 +313,7 @@ FILE *utf8_fopen( const char *filename, const char *mode )
*****************************************************************************/ *****************************************************************************/
int utf8_mkdir( const char *dirname ) int utf8_mkdir( const char *dirname )
{ {
#if defined( UNDER_CE ) || defined( WIN32 ) #if defined (UNDER_CE) || defined (WIN32)
wchar_t wname[MAX_PATH]; wchar_t wname[MAX_PATH];
char mod[MAX_PATH]; char mod[MAX_PATH];
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment