Revision 61bc79ec libavformat/os_support.c

View differences:

libavformat/os_support.c
21 21
 */
22 22
#include "config.h"
23 23
#include "avformat.h"
24
#if defined(CONFIG_WINCE)
25
/* Skip includes on WinCE. */
26
#elif defined(__MINGW32__)
24
#if defined(__MINGW32__)
27 25
#include <sys/types.h>
28 26
#include <sys/timeb.h>
29 27
#elif defined(CONFIG_OS2)
......
49 47
 */
50 48
int64_t av_gettime(void)
51 49
{
52
#if defined(CONFIG_WINCE)
53
    return timeGetTime() * INT64_C(1000);
54
#elif defined(__MINGW32__)
50
#if defined(__MINGW32__)
55 51
    struct timeb tb;
56 52
    _ftime(&tb);
57 53
    return ((int64_t)tb.time * INT64_C(1000) + (int64_t)tb.millitm) * INT64_C(1000);
......
62 58
#endif
63 59
}
64 60

  
65
#if !defined(CONFIG_WINCE) && !defined(HAVE_LOCALTIME_R)
61
#if !defined(HAVE_LOCALTIME_R)
66 62
struct tm *localtime_r(const time_t *t, struct tm *tp)
67 63
{
68 64
    struct tm *l;
......
73 69
    *tp = *l;
74 70
    return tp;
75 71
}
76
#endif /* !defined(CONFIG_WINCE) && !defined(HAVE_LOCALTIME_R) */
72
#endif /* !defined(HAVE_LOCALTIME_R) */
77 73

  
78 74
#if !defined(HAVE_INET_ATON) && defined(CONFIG_NETWORK)
79 75
#include <stdlib.h>

Also available in: Unified diff