From ddd4d84a1d13e8d3c20d52749b2e9075d92196d1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 2 Feb 2011 07:41:32 +0000 Subject: [PATCH] fixed mingw build --- ChangeLog | 1 + src/file.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3332182ea..0f73884e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -79,6 +79,7 @@ incoming connection * added more detailed instrumentation of the disk I/O thread + * fixed mingw build * fixed minor bug in metadata block requester (for magnet links) * fixed race condition in iconv string converter * fixed error handling in torrent_info constructor diff --git a/src/file.cpp b/src/file.cpp index 0038db640..17fb1ff7d 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -46,6 +46,10 @@ POSSIBILITY OF SUCH DAMAGE. #ifdef TORRENT_WINDOWS // windows part +#ifndef PtrToPtr64 +#define PtrToPtr64(x) (x) +#endif + #include "libtorrent/utf8.hpp" #ifndef WIN32_LEAN_AND_MEAN