Browse Source

Incorporate the missing compatibility defines for Windows in speech.h.

master
Reece H. Dunn 9 years ago
parent
commit
4f02a09242
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      src/libespeak-ng/speech.h

+ 14
- 0
src/libespeak-ng/speech.h View File

#define NO_VARIADIC_MACROS #define NO_VARIADIC_MACROS
#endif #endif


#if defined(_WIN32) || defined(_WIN64) // Windows

#define PLATFORM_WINDOWS
#define PATHSEP '\\'
#define NEED_GETOPT
#define NO_VARIADIC_MACROS

#else


#define PLATFORM_POSIX #define PLATFORM_POSIX
#define PATHSEP '/' #define PATHSEP '/'
#define USE_NANOSLEEP #define USE_NANOSLEEP
#define __cdecl #define __cdecl


#endif

#ifdef _ESPEAKEDIT #ifdef _ESPEAKEDIT
#define LOG_FRAMES // write keyframe info to log-espeakedit #define LOG_FRAMES // write keyframe info to log-espeakedit
#endif #endif
typedef unsigned short USHORT; typedef unsigned short USHORT;
typedef unsigned char UCHAR; typedef unsigned char UCHAR;
typedef double DOUBLEX; typedef double DOUBLEX;
#ifdef _WIN64
typedef uint64_t long64; // use this for conversion between pointers and integers
#else
typedef unsigned long long64; // use this for conversion between pointers and integers typedef unsigned long long64; // use this for conversion between pointers and integers
#endif







Loading…
Cancel
Save