diff --git a/Makefile.am b/Makefile.am index 039af00c..311b8ba0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -127,12 +127,17 @@ lib_LTLIBRARIES += src/libespeak-ng.la src_libespeak_ng_la_LDFLAGS = -version-info $(SHARED_VERSION) -lpthread -lm \ ${PCAUDIOLIB_LIBS} -src_libespeak_ng_la_CFLAGS = -Isrc/include -Isrc/include/compat \ +src_libespeak_ng_la_CFLAGS = -Isrc/include -Isrc/include/compat -I src/ucd-tools/src/include \ -fPIC -fvisibility=hidden -D _BSD_SOURCE -D_DEFAULT_SOURCE -D _POSIX_C_SOURCE=200112L \ -pedantic -fno-exceptions -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -DLIBESPEAK_NG_EXPORT \ ${PCAUDIOLIB_CFLAGS} ${AM_CFLAGS} src_libespeak_ng_la_SOURCES = \ + src/ucd-tools/src/case.c \ + src/ucd-tools/src/categories.c \ + src/ucd-tools/src/ctype.c \ + src/ucd-tools/src/scripts.c \ + src/ucd-tools/src/tostring.c \ src/libespeak-ng/compiledata.c \ src/libespeak-ng/compiledict.c \ src/libespeak-ng/compilembrola.c \ diff --git a/src/include/compat/stdint.h b/src/include/compat/stdint.h index d3b1622f..34c176e2 100644 --- a/src/include/compat/stdint.h +++ b/src/include/compat/stdint.h @@ -45,12 +45,10 @@ #pragma GCC system_header // Silence "warning: #include_next is a GCC extension" -#if defined(HAVE_STDINT_H) +#if defined(HAVE_STDINT_H) || !defined(HAVE_INTTYPES_H) #include_next -#elif defined(HAVE_INTTYPES_H) -#include_next #else -#error stdint.h compatibility is not supported on this platform +#include_next #endif #endif