libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit de60f56ce04b76eb793284fbc107e45d448e5688
parent 7e69727f669aebf880e1dde98cb14a5166b8fb20
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu,  6 Aug 2015 15:45:32 +0000

internal.h: add BUILTIN_NOT_REACHED macro for VS compiler

Diffstat:
Msrc/microhttpd/internal.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h @@ -78,6 +78,8 @@ extern void *mhd_panic_cls; /* If we have Clang or gcc >= 4.5, use __buildin_unreachable() */ #if defined(__clang__) || (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) #define BUILTIN_NOT_REACHED __builtin_unreachable() +#elif defined(_MSC_FULL_VER) +#define BUILTIN_NOT_REACHED __assume(0) #else #define BUILTIN_NOT_REACHED #endif