mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-09 07:52:27 +00:00
Define a compatibility macro for platforms that don't have S_ISDIR.
This commit is contained in:
@@ -31,6 +31,10 @@
|
||||
|
||||
#include "speak_lib.h"
|
||||
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
// This version of the command-line speak program uses the
|
||||
// libespeak.so.1 library
|
||||
|
||||
|
||||
@@ -50,6 +50,10 @@
|
||||
#include "event.h"
|
||||
#include "wave.h"
|
||||
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
unsigned char *outbuf=NULL;
|
||||
|
||||
espeak_EVENT *event_list=NULL;
|
||||
|
||||
@@ -51,6 +51,10 @@
|
||||
#include "voice.h"
|
||||
#include "translate.h"
|
||||
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
extern void Write4Bytes(FILE *f, int value);
|
||||
|
||||
Reference in New Issue
Block a user