Commit Graph
28 Commits
Author SHA1 Message Date
Yury Popov c8a21a5463 code cleanup: header detection with has_include 2022-11-27 14:54:48 +03:00
Beqa Gozalishvili e3487d0cf8 Android: Fix compatibility issues with some vendors
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
2022-11-04 00:58:37 +04:00
Alexander Epaneshnikov 4ca505d01e windows: don't include winsock2.h
otherwise we get many errors
2022-04-01 23:38:34 +03:00
Jakub Kulík 4b090ad8a1 Add support for Solaris 2022-03-01 11:56:48 +01:00
Anthony Cornehl 897fad64c1 Remove definitions for towlower/towupper
The definitions for towlower() and towupper() are defined in /usr/include/wctype.h on FreeBSD platforms. I just removed the define and used  the ucd_ equivilent where towlower/towupper were found.

/bin/sh ./libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.    -fPIC -fvisibility=hidden -pedantic -fno-exceptions -D PATH_ESPEAK_DATA=\"/usr/local/share/espeak-
ng-data\" -DLIBESPEAK_NG_EXPORT  -Isrc/include -Isrc/include/compat -I src/ucd-tools/src/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112L -Wno-endif-lab
els    -g -O2 -std=c99 -MT src/libespeak-ng/src_libespeak_ng_la-readclause.lo -MD -MP -MF src/libespeak-ng/.deps/src_libespeak_ng_la-readclause.Tpo -c -o src/libespeak-n
g/src_libespeak_ng_la-readclause.lo `test -f 'src/libespeak-ng/readclause.c' || echo './'`src/libespeak-ng/readclause.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -fPIC -fvisibility=hidden -pedantic -fno-exceptions -D PATH_ESPEAK_DATA=\"/usr/local/share/espeak-ng-data\" -DLIBESPEAK_NG_EXPO
RT -Isrc/include -Isrc/include/compat -I src/ucd-tools/src/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112L -Wno-endif-labels -g -O2 -std=c99 -MT src/li
bespeak-ng/src_libespeak_ng_la-readclause.lo -MD -MP -MF src/libespeak-ng/.deps/src_libespeak_ng_la-readclause.Tpo -c src/libespeak-ng/readclause.c  -fPIC -DPIC -o src/l
ibespeak-ng/.libs/src_libespeak_ng_la-readclause.o
In file included from src/libespeak-ng/readclause.c:32:
In file included from src/include/compat/wctype.h:30:
/usr/include/wctype.h:73:8: error: conflicting types for 'ucd_tolower'
wint_t  towlower(wint_t);
        ^
src/include/compat/wchar.h:37:18: note: expanded from macro 'towlower'
                 ^
src/ucd-tools/src/include/ucd/ucd.h:503:13: note: previous declaration is here
codepoint_t ucd_tolower(codepoint_t c);
            ^
In file included from src/libespeak-ng/readclause.c:32:
In file included from src/include/compat/wctype.h:30:
/usr/include/wctype.h:74:8: error: conflicting types for 'ucd_toupper'
wint_t  towupper(wint_t);
        ^
src/include/compat/wchar.h:38:18: note: expanded from macro 'towupper'
                 ^
src/ucd-tools/src/include/ucd/ucd.h:491:13: note: previous declaration is here
codepoint_t ucd_toupper(codepoint_t c);
            ^
src/libespeak-ng/readclause.c:366:19: warning: implicit declaration of function 'mkstemp' is invalid in C99 [-Wimplicit-function-declaration]
                        if ((fd_temp = mkstemp(fname_temp)) >= 0)
                                       ^
1 warning and 2 errors generated.
2017-08-31 17:42:17 -07:00
Reece H. Dunn c4ca7a1202 Add wchar.h and wctype.h compatibility shims using ucd-tools. This is applied to all platforms to provide consistent behaviour. 2017-02-13 19:49:30 +00:00
Reece H. Dunn 9ecde56231 Build the ucd-tools files with libespeak. 2017-02-10 07:45:43 +00:00
Reece H. Dunn 5118891f20 windows: Visual Studio 2013 compatibility. 2017-01-27 13:12:37 +00:00
Reece H. Dunn 3081fe7287 windows: Fix the msvc version check in stat.h. 2017-01-27 12:51:12 +00:00
Reece H. Dunn 2e84bbbcc8 Use autoconf to check for sys/endian.h. 2017-01-15 10:02:30 +00:00
Reece H. Dunn 58c655abae Use autoconf to check for endian.h. 2017-01-15 09:51:44 +00:00
Eitan Isaacson 5f5fc4886b Add emscripten case to endian.h shim. 2017-01-05 10:29:25 -08:00
Reece H. Dunn 0881659b80 endian.h: Use the Windows checks directly instead of creating a __WINDOWS__define. 2016-12-17 14:07:26 +00:00
Reece H. Dunn f4654f1e3f Extend the license of the endian.h modifications to match the original. 2016-12-17 14:04:53 +00:00
Reece H. Dunn c6d44dd963 Fix endian.h on Windows (remove the sys/param.h include). 2016-12-17 14:02:42 +00:00
Reece H. Dunn 02f0c83619 endian.h: Fix compilation on Linux. 2016-12-07 07:20:28 +00:00
Reece H. Dunn 55da41e085 endian.h: Use the compatibility shim conventions. 2016-12-07 07:18:53 +00:00
Reece H. Dunn 454c794c3a endian.h: Remove additional blank lines. 2016-12-07 07:13:50 +00:00
Reece H. Dunn 636dc94aa1 endian.h: use C-style comments and wrap the comment to 80 characters. 2016-12-07 07:12:46 +00:00
Reece H. Dunn 4aade2fce7 Add an endian.h compatibility shim for portability. 2016-12-07 07:09:51 +00:00
Reece H. Dunn 6cf06a49ef Add compatibility for the missing S_ISFIFO on Windows. 2016-09-10 10:24:46 +01:00
Reece H. Dunn 2a652dfe43 Fix forwarding to strings.h on non-msvc builds in the shim header. 2016-02-02 20:02:19 +00:00
Reece H. Dunn 211f103a69 Perform case insensitive comparisons for matching voice names. 2016-02-01 18:37:06 +00:00
Reece H. Dunn e963b54b6d Move strerror_r portability to a string.h compatibility shim. 2016-01-23 11:35:07 +00:00
Reece H. Dunn 527f2bc6b2 Add M_PI compatibility when using the msvc standard library. 2016-01-23 10:50:26 +00:00
Reece H. Dunn 9c5820f72a Create an initial compatibility shim for unistd.h. 2016-01-15 07:22:46 +00:00
Reece H. Dunn c22550afb5 Use the NetBSD getopt_long implementation on Windows.
This makes the espeak-ng.c and speak-ng.c source code easier to
read and maintain. It also addresses bugs in command-line argument
parsing with the espeak implementation, for example it treats
`--compile-phonemes` as `--compile` due to an argument matching bug.
2016-01-13 22:05:41 +00:00
Reece H. Dunn 9c7179189b Add a stdint.h compatibility shim. 2016-01-09 13:09:50 +00:00