rhdunn / espeak

eSpeak NG is an open source speech synthesizer that supports 101 languages and accents.
http://reecedunn.co.uk/espeak-for-android
GNU General Public License v3.0
386 stars 16 forks source link

build, encoding: include stdint #105

Closed yorkie closed 7 years ago

yorkie commented 7 years ago

The stdint.h is not included when building test, then including this module inside encoding.h, the error is the following:

1 warning generated.
  CCLD     tests/tokenizer.test
  CC       tests/tests_readclause_test-readclause.o
  CCLD     tests/readclause.test
  CC       tests/tests_api_test-api.o
In file included from tests/api.c:27:
src/include/espeak-ng/encoding.h:88:15: error: unknown type name 'uint32_t'
ESPEAK_NG_API uint32_t
              ^
src/include/espeak-ng/encoding.h:91:15: error: unknown type name 'uint32_t'
ESPEAK_NG_API uint32_t
              ^
In file included from tests/api.c:31:
src/libespeak-ng/synthesize.h:451:8: error: unknown type name 'intptr_t'
extern intptr_t wcmdq[N_WCMDQ][4];
       ^
In file included from tests/api.c:32:
src/libespeak-ng/translate.h:238:32: error: unknown type name 'uint32_t'
int clause_type_from_codepoint(uint32_t c);

/cc @rhdunn

yorkie commented 7 years ago

Wow awesome @rhdunn, Such quick merge 🎏