Minor
This commit is contained in:
parent
e1acff806b
commit
37be774af9
|
@ -86,7 +86,7 @@ extern "C" int hb_memalign_impl(void **memptr, size_t alignment, size_t size);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compiler attributes
|
* Compiler attributes
|
||||||
* */
|
*/
|
||||||
|
|
||||||
#if __cplusplus < 201103L
|
#if __cplusplus < 201103L
|
||||||
|
|
||||||
|
@ -98,7 +98,6 @@ extern "C" int hb_memalign_impl(void **memptr, size_t alignment, size_t size);
|
||||||
#define constexpr const
|
#define constexpr const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Static assertions
|
|
||||||
#ifndef static_assert
|
#ifndef static_assert
|
||||||
#define static_assert(e, msg) \
|
#define static_assert(e, msg) \
|
||||||
HB_UNUSED typedef int HB_PASTE(static_assertion_failed_at_line_, __LINE__) [(e) ? 1 : -1]
|
HB_UNUSED typedef int HB_PASTE(static_assertion_failed_at_line_, __LINE__) [(e) ? 1 : -1]
|
||||||
|
@ -124,7 +123,7 @@ struct _hb_alignof
|
||||||
};
|
};
|
||||||
#ifndef alignof
|
#ifndef alignof
|
||||||
#define alignof(x) (_hb_alignof<x>::value)
|
#define alignof(x) (_hb_alignof<x>::value)
|
||||||
#endif // alignof
|
#endif
|
||||||
|
|
||||||
#endif // __cplusplus < 201103L
|
#endif // __cplusplus < 201103L
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue