[NUT-devel] [nut]: r680 - src/trunk/libnut/priv.h

michael subversion at mplayerhq.hu
Sat Nov 9 18:31:48 CET 2013


Author: michael
Date: Sat Nov  9 18:31:47 2013
New Revision: 680

Log:
libnut: fix building on i686-pc-mingw32

Patch-by: Timothy Gu <timothygu99 at gmail.com>
Reviewed-by: Oded Shimon
Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

Modified:
   src/trunk/libnut/priv.h

Modified: src/trunk/libnut/priv.h
==============================================================================
--- src/trunk/libnut/priv.h	Sun Oct 20 15:25:10 2013	(r679)
+++ src/trunk/libnut/priv.h	Sat Nov  9 18:31:47 2013	(r680)
@@ -44,6 +44,10 @@
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 #define ABS(a) ((a) > 0 ? (a) : -(a))
 
+#if (defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR))
+#define ftello(a) ((off_t)(_ftelli64(a)))
+#endif
+
 typedef struct {
 	nut_input_stream_tt isc;
 	int is_mem;


More information about the NUT-devel mailing list