Fix issue with VS builds

The Visual Studio part of this patch was wrong, and left an empty if statement.
This commit is contained in:
Rian Quinn
2016-09-28 09:53:33 -06:00
committed by GitHub
parent 4b29878d70
commit 3161d6133f
+4 -4
View File
@@ -39,11 +39,11 @@
#define GSL_STRINGIFY(x) GSL_STRINGIFY_DETAIL(x)
#if defined(__clang__) || defined(__GNUC__)
#define GSL_LIKELY(x) __builtin_expect (!!(x), 1)
#define GSL_UNLIKELY(x) __builtin_expect (!!(x), 0)
#define GSL_LIKELY(x) __builtin_expect (!!(x), 1)
#define GSL_UNLIKELY(x) __builtin_expect (!!(x), 0)
#else
#define GSL_LIKELY(x)
#define GSL_UNLIKELY(x)
#define GSL_LIKELY(x) (x)
#define GSL_UNLIKELY(x) (x)
#endif
//