blob: 045940ebc7b281f404053fa1010aa942999e47dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff --git a/libnut/priv.h b/libnut/priv.h
index 5183503..aac2952 100644
--- a/libnut/priv.h
+++ b/libnut/priv.h
@@ -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;
|