mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
Android: Fix compatibility issues with some vendors (#1498)
add tolower and toupper to be processed by ucd-tools in WCTYPE_H_COMPAT_SHIM some vendors don't provide conformance with c standard in bionic
This commit is contained in:
@@ -55,7 +55,7 @@ ESPEAK_SRC_PATH := ../../src
|
||||
ESPEAK_SRC_FILES := \
|
||||
$(subst src/,$(ESPEAK_SRC_PATH)/,$(ESPEAK_SOURCES))
|
||||
|
||||
LOCAL_CFLAGS += -DINCLUDE_KLATT -DINCLUDE_SPEECHPLAYER -DINCLUDE_SONIC
|
||||
LOCAL_CFLAGS += -DINCLUDE_KLATT -DINCLUDE_SPEECHPLAYER -DINCLUDE_SONIC -DHAVE_ENDIAN_H
|
||||
LOCAL_SRC_FILES += \
|
||||
$(filter-out $(BLACKLIST_SRC_FILES),$(ESPEAK_SRC_FILES))
|
||||
|
||||
@@ -70,7 +70,8 @@ LOCAL_C_INCLUDES += \
|
||||
$(LOCAL_PATH)/include \
|
||||
$(LOCAL_PATH)/$(UCDTOOLS_SRC_PATH)/include \
|
||||
$(LOCAL_PATH)/../../src/speechPlayer/include \
|
||||
$(LOCAL_PATH)/$(ESPEAK_SRC_PATH)/include
|
||||
$(LOCAL_PATH)/$(ESPEAK_SRC_PATH)/include \
|
||||
$(LOCAL_PATH)/$(ESPEAK_SRC_PATH)/include/compat
|
||||
|
||||
LOCAL_LDLIBS := \
|
||||
-llog
|
||||
|
||||
@@ -44,5 +44,7 @@
|
||||
#define iswspace ucd_isspace
|
||||
#define iswupper ucd_isupper
|
||||
#define iswxdigit ucd_isxdigit
|
||||
#define tolower ucd_tolower
|
||||
#define toupper udc_toupper
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user