changeset 1598:9832e339fb70 libavformat

support files >2GB on MinGW patch by Ramiro Polla, angustia arrozcru.no-ip org
author diego
date Fri, 22 Dec 2006 23:44:04 +0000
parents 14e688e575b1
children 1be19e4024a0
files os_support.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/os_support.h	Fri Dec 22 04:38:24 2006 +0000
+++ b/os_support.h	Fri Dec 22 23:44:04 2006 +0000
@@ -27,6 +27,7 @@
  * miscellaneous OS support macros and functions.
  *
  * - usleep() (Win32, BeOS, OS/2)
+ * - lseek() (Win32)
  * - floatf() (OS/2)
  * - strcasecmp() (OS/2)
  */
@@ -35,6 +36,8 @@
 __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
 // #  include <windows.h>
 #  define usleep(t)    Sleep((t) / 1000)
+#  include <fcntl.h>
+#  define lseek(f,p,w) _lseeki64((f), (p), (w))
 #endif
 
 #ifdef __BEOS__