shithub: opus

Download patch

ref: 1096fe5cfafef3bc2d5365fae954484ababb6af6
parent: 936f52ca0ef4729f26dec092ef8388d2d4c0bf07
author: Gregory Maxwell <[email protected]>
date: Sun May 13 15:17:16 EDT 2012

Remove unused headers/defines in silk/typedef.h, improving portability to AMIX4.0/GCC1.4.

--- a/silk/typedef.h
+++ b/silk/typedef.h
@@ -30,27 +30,10 @@
 
 #include "opus_types.h"
 
-#ifndef silk_USE_DOUBLE_PRECISION_FLOATS
-#define silk_USE_DOUBLE_PRECISION_FLOATS     0
-#endif
-
-#include <float.h>
-#if defined( __GNUC__ )
-#include <stdint.h>
-#endif
-
-#if silk_USE_DOUBLE_PRECISION_FLOATS
-# define silk_float      double
-# define silk_float_MAX  DBL_MAX
-#else
+#ifndef FIXED_POINT
+# include <float.h>
 # define silk_float      float
 # define silk_float_MAX  FLT_MAX
-#endif
-
-#ifdef _WIN32
-# define silk_STR_CASEINSENSITIVE_COMPARE(x, y) _stricmp(x, y)
-#else
-# define silk_STR_CASEINSENSITIVE_COMPARE(x, y) strcasecmp(x, y)
 #endif
 
 #define silk_int64_MAX   ((opus_int64)0x7FFFFFFFFFFFFFFFLL)   /*  2^63 - 1 */