Revision ac44871c libavformat/os_support.c

View differences:

libavformat/os_support.c
18 18
 */
19 19
#include "config.h"
20 20
#include "avformat.h"
21
#ifdef CONFIG_WIN32
21
#if defined(CONFIG_WIN32) && !defined(CONFIG_WINCE)
22 22
#include <sys/types.h>
23 23
#include <sys/timeb.h>
24 24
#elif defined(CONFIG_OS2)
......
36 36
 */
37 37
int64_t av_gettime(void)
38 38
{
39
#ifdef CONFIG_WIN32
39
#if defined(CONFIG_WINCE)
40
    return timeGetTime() * int64_t_C(1000);
41
#elif defined(CONFIG_WIN32)
40 42
    struct timeb tb;
41 43
    _ftime(&tb);
42 44
    return ((int64_t)tb.time * int64_t_C(1000) + (int64_t)tb.millitm) * int64_t_C(1000);
......
47 49
#endif
48 50
}
49 51

  
52
#if !defined(CONFIG_WINCE)
50 53
#if !defined(HAVE_LOCALTIME_R)
51 54
struct tm *localtime_r(const time_t *t, struct tm *tp)
52 55
{
......
59 62
    return tp;
60 63
}
61 64
#endif /* !defined(HAVE_LOCALTIME_R) */
65
#endif /* !defined(CONFIG_WINCE) */

Also available in: Unified diff