From a51326dc67c2ab95a630debaf9db4cf52454c7f5 Mon Sep 17 00:00:00 2001 From: Orvid King Date: Mon, 27 Jul 2015 16:06:57 -0700 Subject: [PATCH] Support GroupVarint.h under MSVC Summary: MSVC supports the intrinsics used by it without any issue other changes, so just make sure the error doesn't trigger on MSVC. Closes #252 Reviewed By: @yfeldblum Differential Revision: D2282942 Pulled By: @sgolemon --- folly/GroupVarint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/GroupVarint.h b/folly/GroupVarint.h index f50617cb..153673ca 100644 --- a/folly/GroupVarint.h +++ b/folly/GroupVarint.h @@ -17,8 +17,8 @@ #ifndef FOLLY_GROUPVARINT_H_ #define FOLLY_GROUPVARINT_H_ -#ifndef __GNUC__ -#error GroupVarint.h requires GCC +#if !defined(__GNUC__) && !defined(_MSC_VER) +#error GroupVarint.h requires GCC or MSVC #endif #include -- 2.34.1