mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 08:47:50 +08:00
32 lines
729 B
Diff
32 lines
729 B
Diff
|
diff --git a/include/jwt-cpp/base.h b/include/jwt-cpp/base.h
|
||
|
index dfca7fc..4d05c0b 100644
|
||
|
--- a/include/jwt-cpp/base.h
|
||
|
+++ b/include/jwt-cpp/base.h
|
||
|
@@ -2,6 +2,10 @@
|
||
|
#include <string>
|
||
|
#include <array>
|
||
|
|
||
|
+#ifdef _MSC_VER
|
||
|
+#pragma warning(disable : 4267)
|
||
|
+#endif
|
||
|
+
|
||
|
namespace jwt {
|
||
|
namespace alphabet {
|
||
|
struct base64 {
|
||
|
diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h
|
||
|
index ec56810..313cef2 100644
|
||
|
--- a/include/jwt-cpp/jwt.h
|
||
|
+++ b/include/jwt-cpp/jwt.h
|
||
|
@@ -12,6 +12,11 @@
|
||
|
#include <openssl/ec.h>
|
||
|
#include <openssl/err.h>
|
||
|
|
||
|
+#ifdef _MSC_VER
|
||
|
+#pragma warning(disable : 4267)
|
||
|
+#pragma warning(disable : 4067)
|
||
|
+#endif
|
||
|
+
|
||
|
//If openssl version less than 1.1
|
||
|
#if OPENSSL_VERSION_NUMBER < 269484032
|
||
|
#define OPENSSL10
|