test/api: Fix building subset tests
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 12 Mar 2018 05:48:55 +0000 (13:48 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 13 Mar 2018 12:17:58 +0000 (20:17 +0800)
commit831d4a2dab1f229811c3a90b791f2a19c88fc1b5
treecbd39f68267c35304969dacbc16e880d825fe39e
parenteda6a5ea807ba8a4e7fa20ad0273b394ed72d106
test/api: Fix building subset tests

Include stdbool.h in hb-setset-test.h instead of in the individual
sources, if it is found; otherwise use a simplistic fallback for it if
it is not found.

Also declare variables at the top of the block, to build on pre-C99
compiliers.
test/api/hb-subset-test.h
test/api/test-subset-cmap.c
test/api/test-subset-glyf.c
test/api/test-subset-hdmx.c
test/api/test-subset-hmtx.c
test/api/test-subset-os2.c