From 8841837fe43a2caecee39f11f4c4639a7ee81d18 Mon Sep 17 00:00:00 2001
From: Lander Noterman <lander.noterman@gmail.com>
Date: Mon, 9 Dec 2019 09:23:37 +0100
Subject: [PATCH] fix clang-cl build on windows

---
 include/jwt/config.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/jwt/config.hpp b/include/jwt/config.hpp
index 6370510..5d94a0c 100644
--- a/include/jwt/config.hpp
+++ b/include/jwt/config.hpp
@@ -29,7 +29,7 @@
 
 // To hack around Visual Studio error:
 // error C3431: 'algorithm': a scoped enumeration cannot be redeclared as an unscoped enumeration
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && !defined(__clang__)
 #define SCOPED_ENUM enum class
 #else
 #define SCOPED_ENUM enum