changeset 448:66217205fe4e libavformat

cygwin patch by ("Sascha Sommer" <saschasommer at freenet dot de>)
author michael
date Sat, 24 Apr 2004 11:51:38 +0000
parents 94aa265c18b9
children 9cff946a8bb8
files os_support.c os_support.h
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/os_support.c	Fri Apr 23 21:02:01 2004 +0000
+++ b/os_support.c	Sat Apr 24 11:51:38 2004 +0000
@@ -34,7 +34,7 @@
 int64_t av_gettime(void)
 {
 #ifdef CONFIG_WIN32
-    struct _timeb tb;
+    struct timeb tb;
     _ftime(&tb);
     return ((int64_t)tb.time * int64_t_C(1000) + (int64_t)tb.millitm) * int64_t_C(1000);
 #else
--- a/os_support.h	Fri Apr 23 21:02:01 2004 +0000
+++ b/os_support.h	Sat Apr 24 11:51:38 2004 +0000
@@ -11,7 +11,6 @@
  */
 
 #ifdef __MINGW32__
-#  undef DATADIR /* clashes with /usr/include/w32api/objidl.h */
 __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
 // #  include <windows.h>
 #  define usleep(t)    Sleep((t) / 1000)