fix linux build and make use of the system INT64_MAX define

This commit is contained in:
Arvid Norberg 2012-06-24 19:50:49 +00:00
parent b728037ec3
commit 3f1bfb5477
2 changed files with 5 additions and 2 deletions

View File

@ -50,8 +50,10 @@ POSSIBILITY OF SUCH DAMAGE.
#endif
#ifndef _MSC_VER
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#define __STDC_FORMAT_MACROS 1
#define __STDC_LIMIT_MACROS 1
#include <inttypes.h> // for PRId64 et.al.
#include <stdint.h> // for INT64_MAX
#endif
#ifndef PRId64

View File

@ -30,6 +30,7 @@ POSSIBILITY OF SUCH DAMAGE.
*/
#include "libtorrent/config.hpp"
#include "libtorrent/utp_stream.hpp"
#include "libtorrent/sliding_average.hpp"
#include "libtorrent/utp_socket_manager.hpp"