mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[PSDK]
* Add DEFAULT_UNREACHABLE macro to ntdef.h. * Add break to the last case. svn path=/trunk/; revision=58686
This commit is contained in:
parent
ba43b2590a
commit
8d892dc056
2 changed files with 10 additions and 1 deletions
|
@ -700,6 +700,15 @@ typedef struct _GROUP_AFFINITY {
|
|||
/* C_ASSERT Definition */
|
||||
#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: break
|
||||
#endif
|
||||
|
||||
#define VER_WORKSTATION_NT 0x40000000
|
||||
#define VER_SERVER_NT 0x80000000
|
||||
#define VER_SUITE_SMALLBUSINESS 0x00000001
|
||||
|
|
|
@ -422,7 +422,7 @@ typedef DWORD FLONG;
|
|||
#elif defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5))))
|
||||
# define DEFAULT_UNREACHABLE default: __builtin_unreachable()
|
||||
#else
|
||||
# define DEFAULT_UNREACHABLE default:
|
||||
# define DEFAULT_UNREACHABLE default: break
|
||||
#endif
|
||||
|
||||
#include "intrin.h"
|
||||
|
|
Loading…
Reference in a new issue