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



#include "speak_lib.h" #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 // This version of the command-line speak program uses the
// libespeak.so.1 library // libespeak.so.1 library



+ 4
- 0
src/libespeak-ng/speak_lib.c View File

#include "event.h" #include "event.h"
#include "wave.h" #include "wave.h"


#ifndef S_ISDIR
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif

unsigned char *outbuf=NULL; unsigned char *outbuf=NULL;


espeak_EVENT *event_list=NULL; espeak_EVENT *event_list=NULL;

+ 4
- 0
src/speak.c View File

#include "voice.h" #include "voice.h"
#include "translate.h" #include "translate.h"


#ifndef S_ISDIR
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif





extern void Write4Bytes(FILE *f, int value); extern void Write4Bytes(FILE *f, int value);

Loading…
Cancel
Save