Define a compatibility macro for platforms that don't have S_ISDIR.

This commit is contained in:
Reece H. Dunn
2015-12-10 22:26:35 +00:00
parent 1042d88f56
commit 66aa52e485
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -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
+4
View File
@@ -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;
+4
View File
@@ -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);