mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-23 20:14:23 +00:00
Support building espeak-ng.exe with Visual C++.
This commit is contained in:
@@ -26,9 +26,13 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#ifdef __WIN32__
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#ifdef LIBESPEAK_NG_EXPORT
|
||||
#define ESPEAK_NG_API __declspec(dllexport)
|
||||
#else
|
||||
#define ESPEAK_NG_API __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#define ESPEAK_NG_API
|
||||
#endif
|
||||
|
||||
|
||||
@@ -28,9 +28,13 @@
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __WIN32__
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#ifdef LIBESPEAK_NG_EXPORT
|
||||
#define ESPEAK_API __declspec(dllexport)
|
||||
#else
|
||||
#define ESPEAK_API __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#define ESPEAK_API
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user