WinCE: header inclusion fixes

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
This commit is contained in:
Geoffroy Couprie 2008-09-04 15:05:18 +02:00 committed by Rémi Denis-Courmont
parent 84b3a5e68b
commit 71d9f0d028
2 changed files with 12 additions and 1 deletions

View File

@ -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 <sys/stat.h>
# 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 <windef.h>
#endif
# define LIBVLC_EXPORT __declspec(dllexport)
#else
# define LIBVLC_EXPORT

View File

@ -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