From 96432965c45e9be00a49ba2a685f9875005f5bb7 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Tue, 14 Jan 2025 00:35:04 +0800 Subject: [PATCH] add m_pi define if not found --- otherarch/tts_adapter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/otherarch/tts_adapter.cpp b/otherarch/tts_adapter.cpp index 92fc3ce79..a9eddd77b 100644 --- a/otherarch/tts_adapter.cpp +++ b/otherarch/tts_adapter.cpp @@ -21,6 +21,10 @@ #pragma warning(disable: 4244 4267) // possible loss of data #endif +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + struct wav_header { char riff[4] = {'R', 'I', 'F', 'F'}; uint32_t chunk_size;