mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 01:14:00 +00:00
[PSDK]
* Import DEFAULT_UNREACHABLE from Wine. svn path=/trunk/; revision=58662
This commit is contained in:
parent
2484252bc4
commit
e5f31224e2
1 changed files with 9 additions and 0 deletions
|
@ -416,6 +416,15 @@ typedef DWORD FLONG;
|
||||||
|
|
||||||
#define C_ASSERT(expr) extern char (*c_assert(void)) [(expr) ? 1 : -1]
|
#define C_ASSERT(expr) extern char (*c_assert(void)) [(expr) ? 1 : -1]
|
||||||
|
|
||||||
|
/* 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 default:
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "intrin.h"
|
#include "intrin.h"
|
||||||
|
|
||||||
#define NTAPI __stdcall
|
#define NTAPI __stdcall
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue