This commit is contained in:
Behdad Esfahbod 2018-08-06 04:51:38 -07:00
parent e1acff806b
commit 37be774af9
1 changed files with 2 additions and 3 deletions

View File

@ -86,7 +86,7 @@ extern "C" int hb_memalign_impl(void **memptr, size_t alignment, size_t size);
/*
* Compiler attributes
* */
*/
#if __cplusplus < 201103L
@ -98,7 +98,6 @@ extern "C" int hb_memalign_impl(void **memptr, size_t alignment, size_t size);
#define constexpr const
#endif
// Static assertions
#ifndef static_assert
#define static_assert(e, msg) \
HB_UNUSED typedef int HB_PASTE(static_assertion_failed_at_line_, __LINE__) [(e) ? 1 : -1]
@ -124,7 +123,7 @@ struct _hb_alignof
};
#ifndef alignof
#define alignof(x) (_hb_alignof<x>::value)
#endif // alignof
#endif
#endif // __cplusplus < 201103L