From 3161d6133fb0c05785e657acd4b178d0253e8319 Mon Sep 17 00:00:00 2001 From: Rian Quinn Date: Wed, 28 Sep 2016 09:53:33 -0600 Subject: [PATCH] Fix issue with VS builds The Visual Studio part of this patch was wrong, and left an empty if statement. --- gsl/gsl_assert | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gsl/gsl_assert b/gsl/gsl_assert index 34b3ecb..6d8760d 100644 --- a/gsl/gsl_assert +++ b/gsl/gsl_assert @@ -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 //