Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
/* stat/lstat/fstat */
#ifdef WIN32
/* stat/lstat/fstat */
#ifdef WIN32
+# ifdef UNDER_CE
+# undef _STAT_DEFINED
+# endif
struct _stati64;
#define stat _stati64
#define fstat _fstati64
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;
/* You should otherwise use utf8_stat and utf8_lstat. */
#else
struct stat;
# define LIBVLC_EXTERN extern
#endif
#if defined (WIN32) && defined (DLL_EXPORT)
# 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
# define LIBVLC_EXPORT __declspec(dllexport)
#else
# define LIBVLC_EXPORT
+#if defined (HAVE_UNISTD_H) && !defined (UNDER_CE)
/* Get the current working directory */
char *psz_cwd = getcwd( NULL, 0 );
#else
/* Get the current working directory */
char *psz_cwd = getcwd( NULL, 0 );
#else