From ab338d4d6fc18ebb2e61115fe38afb3084d990bc Mon Sep 17 00:00:00 2001 From: ayhanyalcinsoy Date: Fri, 10 Mar 2017 15:24:15 +0300 Subject: [PATCH] espeak:fixed build --- .../sound/espeak/files/espeak-1.48-gcc-6-fix.patch | 12 ++++++++++++ multimedia/sound/espeak/pspec.xml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 multimedia/sound/espeak/files/espeak-1.48-gcc-6-fix.patch diff --git a/multimedia/sound/espeak/files/espeak-1.48-gcc-6-fix.patch b/multimedia/sound/espeak/files/espeak-1.48-gcc-6-fix.patch new file mode 100644 index 0000000000..6e59c7892f --- /dev/null +++ b/multimedia/sound/espeak/files/espeak-1.48-gcc-6-fix.patch @@ -0,0 +1,12 @@ +diff --git a/src/tr_languages.cpp b/src/tr_languages.cpp +--- a/src/tr_languages.cpp ++++ b/src/tr_languages.cpp +@@ -198,7 +198,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = { + 0x200d, 1, // zero width joiner + 0, 0 }; + +-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8 ++const char string_ordinal[] = {'\xc2','\xba',0}; // masculine ordinal character, UTF-8 + + + static Translator* NewTranslator(void) diff --git a/multimedia/sound/espeak/pspec.xml b/multimedia/sound/espeak/pspec.xml index 3c983b83d1..84263832ee 100644 --- a/multimedia/sound/espeak/pspec.xml +++ b/multimedia/sound/espeak/pspec.xml @@ -24,7 +24,7 @@ espeak-1.23-makefile_nostaticlibs.patch - + espeak-1.48-gcc-6-fix.patch