From 71d9f0d028f4dc9fa4fc1adc56c5bc1c5229c5fd Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Thu, 4 Sep 2008 15:05:18 +0200 Subject: [PATCH] WinCE: header inclusion fixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- include/vlc_common.h | 11 +++++++++++ src/input/subtitles.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/vlc_common.h b/include/vlc_common.h index bc7290ad71..f240599067 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -383,10 +383,18 @@ typedef struct meta_engine_t meta_engine_t; /* stat/lstat/fstat */ #ifdef WIN32 +# ifdef UNDER_CE +# undef _STAT_DEFINED +# endif #include +# ifndef UNDER_CE struct _stati64; #define stat _stati64 #define fstat _fstati64 +# else +# define stat _stat +# define fstat _fstat +# endif /* You should otherwise use utf8_stat and utf8_lstat. */ #else struct stat; @@ -485,6 +493,9 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */ # define LIBVLC_EXTERN extern #endif #if defined (WIN32) && defined (DLL_EXPORT) +#if defined (UNDER_CE) +# include +#endif # define LIBVLC_EXPORT __declspec(dllexport) #else # define LIBVLC_EXPORT diff --git a/src/input/subtitles.c b/src/input/subtitles.c index 0ad27d3b82..5e46df6ca9 100644 --- a/src/input/subtitles.c +++ b/src/input/subtitles.c @@ -278,7 +278,7 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path, } else { -#ifdef HAVE_UNISTD_H +#if defined (HAVE_UNISTD_H) && !defined (UNDER_CE) /* Get the current working directory */ char *psz_cwd = getcwd( NULL, 0 ); #else -- 2.39.2