Compilation Error for ASSERT_STATIC on Some Compilers (#380)
authornvelinov <nikola.velinov@rwth-aachen.de>
Sat, 24 Dec 2016 01:46:37 +0000 (02:46 +0100)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 24 Dec 2016 01:46:37 +0000 (19:46 -0600)
commit7d1c5d8281b05a5c178ea3ae048b0062145968aa
treec2d769e13ad3cb4415e47b56659143736a6100dc
parente2b878055bb1c0b84e1f7cfbf3d3f80bfc6811ea
Compilation Error for ASSERT_STATIC on Some Compilers (#380)

* this pointer in type definitions is not interpreted as a constant.
This rule is not enforced strictly by all compilers, but the Green Hills Software compiler will regard this as an error.

* Merging branches for the DEFINE_SIZE_UNION macro
Adding check for the existence of static_size field in the tested member.
src/hb-open-type-private.hh