mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 08:21:55 +00:00
[XDK] Move UNREACHABLE macro definition to ntbasedef.h
This commit is contained in:
parent
87a5311116
commit
f7c58468f1
2 changed files with 8 additions and 5 deletions
|
@ -9,12 +9,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define UNREACHABLE __assume(0)
|
|
||||||
#define __builtin_expect(a,b) (a)
|
#define __builtin_expect(a,b) (a)
|
||||||
#elif defined(__GNUC__)
|
|
||||||
#define UNREACHABLE __builtin_unreachable()
|
|
||||||
#else
|
|
||||||
#error
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -800,6 +800,14 @@ $endif(_WINNT_)
|
||||||
#define DEFAULT_UNREACHABLE default: break
|
#define DEFAULT_UNREACHABLE default: break
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
#define UNREACHABLE __builtin_unreachable()
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#define UNREACHABLE __assume(0)
|
||||||
|
#else
|
||||||
|
#define UNREACHABLE
|
||||||
|
#endif
|
||||||
|
|
||||||
#define VER_WORKSTATION_NT 0x40000000
|
#define VER_WORKSTATION_NT 0x40000000
|
||||||
#define VER_SERVER_NT 0x80000000
|
#define VER_SERVER_NT 0x80000000
|
||||||
#define VER_SUITE_SMALLBUSINESS 0x00000001
|
#define VER_SUITE_SMALLBUSINESS 0x00000001
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue