summaryrefslogtreecommitdiff
path: root/src/libspeex/config.h
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2014-05-04 01:18:52 +0300
committerMikko Tiusanen <ams@daug.net>2014-05-04 01:18:52 +0300
commit01beb9919b95479d8be040bec74abc5cc67a5e43 (patch)
tree65f0b79e793848491832756a4c3a32b23668fab3 /src/libspeex/config.h
parent191d731da136b7ee959a17e63111c9146219a768 (diff)
Initial import.
Diffstat (limited to 'src/libspeex/config.h')
-rw-r--r--src/libspeex/config.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libspeex/config.h b/src/libspeex/config.h
new file mode 100644
index 0000000..e6657fc
--- /dev/null
+++ b/src/libspeex/config.h
@@ -0,0 +1,23 @@
+// Microsoft version of 'inline'
+#define inline __inline
+
+// Visual Studio support alloca(), but it always align variables to 16-bit
+// boundary, while SSE need 128-bit alignment. So we disable alloca() when
+// SSE is enabled.
+#ifndef _USE_SSE
+# define USE_ALLOCA
+# if defined(__sun) /* Solaris needs this for alloca(). */
+# define HAVE_ALLOCA_H
+# endif
+#endif
+
+/* Default to floating point */
+#ifndef FIXED_POINT
+# define FLOATING_POINT
+# define USE_SMALLFT
+#else
+# define USE_KISS_FFT
+#endif
+
+/* We don't support visibility on Win32 */
+#define EXPORT