diff --git a/Jamfile b/Jamfile index ddae14729..490d80dcb 100644 --- a/Jamfile +++ b/Jamfile @@ -328,7 +328,7 @@ rule building ( properties * ) if on in $(properties) { - result += src/mpi.c ; + result += src/mpi.cpp ; result += src/pe_crypto.cpp ; } diff --git a/src/Makefile.am b/src/Makefile.am index d2ff91f79..4c3496ad1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -86,7 +86,7 @@ libtorrent_rasterbar_la_SOURCES = \ magnet_uri.cpp \ merkle.cpp \ metadata_transfer.cpp \ - mpi.c \ + mpi.cpp \ natpmp.cpp \ parse_url.cpp \ part_file.cpp \ diff --git a/src/mpi.c b/src/mpi.cpp similarity index 99% rename from src/mpi.c rename to src/mpi.cpp index 1153e5d47..b8104f88e 100644 --- a/src/mpi.c +++ b/src/mpi.cpp @@ -1,3 +1,5 @@ +#include "libtorrent/aux_/disable_warnings_push.hpp" + /* Start: bn_error.c */ #include "libtorrent/tommath_private.h" #ifdef BN_ERROR_C