remove possibly broken wince cruft

Originally committed as revision 8763 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Beregszaszi 2007-04-20 23:45:53 +00:00
parent 3154f6dbf9
commit 61bc79ec9c
4 changed files with 4 additions and 23 deletions

8
configure vendored
View File

@ -62,7 +62,6 @@ show_help(){
echo " --shlibdir=DIR install shared libs in DIR [PREFIX/lib]"
echo " --incdir=DIR install includes in DIR [PREFIX/include/ffmpeg]"
echo " --mandir=DIR install man page in DIR [PREFIX/man]"
echo " --enable-mingwce enable MinGW native/cross WinCE compile"
echo " --enable-static build static libraries [default=yes]"
echo " --disable-static do not build static libraries [default=no]"
echo " --enable-shared build shared libraries [default=no]"
@ -597,7 +596,6 @@ CONFIG_LIST='
vhook
v4l
v4l2
wince
x11grab
x264
xvid
@ -779,7 +777,6 @@ bigendian="no"
targetos=$(tolower $(uname -s))
beos_netserver="no"
os2="no"
wince="no"
# non-library system interfaces
audio_beos="default"
@ -937,8 +934,6 @@ for opt do
;;
--cpu=*) cpu="$optval"
;;
--enable-mingwce) wince="yes"
;;
--disable-opts) optimize="no"
;;
--enable-small) optimize="small"
@ -1139,9 +1134,6 @@ EOF
dv1394="no"
ffserver="no"
network="no"
if enabled wince; then
protocols="no"
fi
SLIBPREF=""
SLIBSUF=".dll"
EXESUF=".exe"

View File

@ -21,9 +21,7 @@
*/
#include "config.h"
#include "avformat.h"
#if defined(CONFIG_WINCE)
/* Skip includes on WinCE. */
#elif defined(__MINGW32__)
#if defined(__MINGW32__)
#include <sys/types.h>
#include <sys/timeb.h>
#elif defined(CONFIG_OS2)
@ -49,9 +47,7 @@
*/
int64_t av_gettime(void)
{
#if defined(CONFIG_WINCE)
return timeGetTime() * INT64_C(1000);
#elif defined(__MINGW32__)
#if defined(__MINGW32__)
struct timeb tb;
_ftime(&tb);
return ((int64_t)tb.time * INT64_C(1000) + (int64_t)tb.millitm) * INT64_C(1000);
@ -62,7 +58,7 @@ int64_t av_gettime(void)
#endif
}
#if !defined(CONFIG_WINCE) && !defined(HAVE_LOCALTIME_R)
#if !defined(HAVE_LOCALTIME_R)
struct tm *localtime_r(const time_t *t, struct tm *tp)
{
struct tm *l;
@ -73,7 +69,7 @@ struct tm *localtime_r(const time_t *t, struct tm *tp)
*tp = *l;
return tp;
}
#endif /* !defined(CONFIG_WINCE) && !defined(HAVE_LOCALTIME_R) */
#endif /* !defined(HAVE_LOCALTIME_R) */
#if !defined(HAVE_INET_ATON) && defined(CONFIG_NETWORK)
#include <stdlib.h>

View File

@ -2537,7 +2537,6 @@ int parse_frame_rate(int *frame_rate, int *frame_rate_base, const char *arg)
return 0;
}
#ifndef CONFIG_WINCE
int64_t parse_date(const char *datestr, int duration)
{
const char *p;
@ -2645,7 +2644,6 @@ int64_t parse_date(const char *datestr, int duration)
}
return negative ? -t : t;
}
#endif /* CONFIG_WINCE */
int find_info_tag(char *arg, int arg_size, const char *tag1, const char *info)
{

View File

@ -106,11 +106,6 @@
# define snprintf _snprintf
# define vsnprintf _vsnprintf
# ifdef CONFIG_WINCE
# define perror(a)
# define abort()
# endif
/* __MINGW32__ end */
#elif defined (CONFIG_OS2)
/* OS/2 EMX */