forked from microsoft/GSL
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:
+4
-4
@@ -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
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user