shithub: flite

Download patch

ref: 397265f5791291defa76487c2388e1898e2e433c
parent: baaa888c574e075222ad70b002fe6a140a19098b
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Apr 21 14:44:07 EDT 2023

fix PI macro redefinition (thanks unobe)

--- a/src/cg/cst_mlpg.h
+++ b/src/cg/cst_mlpg.h
@@ -102,10 +102,12 @@
 #define	INVINF ((double) 1.0e-38)
 #define	INVINF2 ((double) 1.0e-19)
 
+#ifndef PI
 #ifdef M_PI
 #define PI		M_PI
 #else
 #define PI		3.1415926535897932385
+#endif
 #endif
 
 #define	WLEFT 0