supress warnings in hashers headers include (#1178)

This commit is contained in:
Alden Torres 2016-10-03 19:32:20 -04:00 committed by Arvid Norberg
parent 8bb7aa62ae
commit 2d7378ddcd
2 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cstdint> #include <cstdint>
#include "libtorrent/aux_/disable_warnings_push.hpp"
#ifdef TORRENT_USE_LIBGCRYPT #ifdef TORRENT_USE_LIBGCRYPT
#include <gcrypt.h> #include <gcrypt.h>
@ -58,6 +59,7 @@ extern "C" {
#else #else
#include "libtorrent/sha1.hpp" #include "libtorrent/sha1.hpp"
#endif #endif
#include "libtorrent/aux_/disable_warnings_pop.hpp"
namespace libtorrent namespace libtorrent
{ {

View File

@ -39,6 +39,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cstdint> #include <cstdint>
#include "libtorrent/aux_/disable_warnings_push.hpp"
#ifdef TORRENT_USE_LIBGCRYPT #ifdef TORRENT_USE_LIBGCRYPT
#include <gcrypt.h> #include <gcrypt.h>
@ -58,6 +59,7 @@ extern "C" {
#else #else
#include "libtorrent/sha512.hpp" #include "libtorrent/sha512.hpp"
#endif #endif
#include "libtorrent/aux_/disable_warnings_pop.hpp"
namespace libtorrent namespace libtorrent
{ {