mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-02 22:52:29 +00:00
Move the N_PATH_HOME declaration in speech.h to avoid a duplicate #ifdef check.
This commit is contained in:
@@ -39,12 +39,14 @@ extern "C"
|
|||||||
|
|
||||||
#define PLATFORM_WINDOWS
|
#define PLATFORM_WINDOWS
|
||||||
#define PATHSEP '\\'
|
#define PATHSEP '\\'
|
||||||
|
#define N_PATH_HOME 230
|
||||||
#define NO_VARIADIC_MACROS
|
#define NO_VARIADIC_MACROS
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define PLATFORM_POSIX
|
#define PLATFORM_POSIX
|
||||||
#define PATHSEP '/'
|
#define PATHSEP '/'
|
||||||
|
#define N_PATH_HOME 160
|
||||||
#define USE_NANOSLEEP
|
#define USE_NANOSLEEP
|
||||||
#define __cdecl
|
#define __cdecl
|
||||||
|
|
||||||
@@ -65,13 +67,6 @@ typedef struct {
|
|||||||
} MNEM_TAB;
|
} MNEM_TAB;
|
||||||
int LookupMnem(MNEM_TAB *table, const char *string);
|
int LookupMnem(MNEM_TAB *table, const char *string);
|
||||||
|
|
||||||
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
|
||||||
#define N_PATH_HOME 230
|
|
||||||
#else
|
|
||||||
#define N_PATH_HOME 160
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern char path_home[N_PATH_HOME]; // this is the espeak-data directory
|
extern char path_home[N_PATH_HOME]; // this is the espeak-data directory
|
||||||
|
|
||||||
extern ESPEAK_NG_API void strncpy0(char *to, const char *from, int size);
|
extern ESPEAK_NG_API void strncpy0(char *to, const char *from, int size);
|
||||||
|
|||||||
Reference in New Issue
Block a user