Include <math.h> from dct.h.
authorTimothy B. Terriberry <tterribe@xiph.org>
Fri, 15 Mar 2013 13:17:41 +0000 (06:17 -0700)
committerTimothy B. Terriberry <tterribe@xiph.org>
Fri, 15 Mar 2013 13:17:41 +0000 (06:17 -0700)
This guarantees consistent definitions of M_PI, etc., regardless of
 include order.

src/dct.h

index 1a4f9c6..e1f51cc 100644 (file)
--- a/src/dct.h
+++ b/src/dct.h
@@ -24,6 +24,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/
 
 #if !defined(_dct_H)
 # define _dct_H (1)
+# include <math.h>
 # include "filter.h"
 
 #if !defined(M_PI)