Browse Source

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

master
Reece H. Dunn 9 years ago
parent
commit
66aa52e485
3 changed files with 12 additions and 0 deletions
  1. 4
    0
      src/espeak.c
  2. 4
    0
      src/libespeak-ng/speak_lib.c
  3. 4
    0
      src/speak.c

+ 4
- 0
src/espeak.c 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
- 0
src/libespeak-ng/speak_lib.c 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
- 0
src/speak.c 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);

Loading…
Cancel
Save