From: Orvid King Date: Mon, 27 Jul 2015 23:06:57 +0000 (-0700) Subject: Support GroupVarint.h under MSVC X-Git-Tag: v0.53.0~53 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a51326dc67c2ab95a630debaf9db4cf52454c7f5;p=folly.git 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 --- 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