mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
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:
parent
4b29878d70
commit
3161d6133f
@ -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
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user