From cd7e38e74d9c1e70a32f6dc40ad9505b4a1fad20 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Fri, 10 Oct 2008 11:37:00 +0200 Subject: [PATCH] WinCE: build dump and timeshift modules --- modules/access_filter/dump.c | 5 +++++ modules/access_filter/timeshift.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/access_filter/dump.c b/modules/access_filter/dump.c index 50ccf9aa58..a6c51b9871 100644 --- a/modules/access_filter/dump.c +++ b/modules/access_filter/dump.c @@ -114,7 +114,12 @@ static int Open (vlc_object_t *obj) return VLC_ENOMEM; memset (p_sys, 0, sizeof (*p_sys)); +# ifndef UNDER_CE if ((p_sys->stream = tmpfile ()) == NULL) +# else + char buf[75]; + if(GetTempFileName("\\Temp\\","vlc",0,buf) || ((p_sys->stream = fopen(buf,"wb+")) ==NULL)) +#endif { msg_Err (access, "cannot create temporary file: %m"); free (p_sys); diff --git a/modules/access_filter/timeshift.c b/modules/access_filter/timeshift.c index df486743e3..0a124baa85 100644 --- a/modules/access_filter/timeshift.c +++ b/modules/access_filter/timeshift.c @@ -40,7 +40,7 @@ #include -#ifdef WIN32 +#if defined (WIN32) && !defined (UNDER_CE) # include /* _wgetcwd */ #endif @@ -579,7 +579,7 @@ static char *GetTmpFilePath( access_t *p_access ) if( psz_dir == NULL ) { -#ifdef WIN32 +#if defined (WIN32) && !defined (UNDER_CE) DWORD ret = GetTempPathW (0, NULL); wchar_t wdir[ret + 3]; // can at least old "C:" + nul const wchar_t *pwdir = wdir; -- 2.20.1