Commit 15448724 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winnt.h: Added GCC variant of DEFAULT_UNREACHABLE macro.

parent 61dafbb7
......@@ -376,8 +376,10 @@ extern "C" {
/* Eliminate Microsoft C/C++ compiler warning 4715 */
#if defined(_MSC_VER) && (_MSC_VER > 1200)
# define DEFAULT_UNREACHABLE default: __assume(0)
#elif defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5))))
# define DEFAULT_UNREACHABLE default: __builtin_unreachable()
#else
# define DEFAULT_UNREACHABLE
# define DEFAULT_UNREACHABLE default:
#endif
/* Error Masks */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment