kernel: Small fixes for Clang.

This commit is contained in:
Augustin Cavalier
2018-06-18 19:32:13 -04:00
parent 29a21a63cb
commit 9ac3062734
3 changed files with 3 additions and 5 deletions
-2
View File
@@ -22,7 +22,6 @@ extern const nothrow_t std::nothrow;
typedef struct {} mynothrow_t;
extern const mynothrow_t mynothrow;
#ifndef __clang__
#if __cplusplus >= 201402L
#define _THROW(x)
#define _NOEXCEPT noexcept
@@ -38,7 +37,6 @@ extern void* operator new(size_t size, const mynothrow_t &) _NOEXCEPT;
extern void* operator new[](size_t size, const mynothrow_t &) _NOEXCEPT;
extern void operator delete(void *ptr) _NOEXCEPT;
extern void operator delete[](void *ptr) _NOEXCEPT;
#endif
#if __cplusplus >= 201402L