aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2011-02-14 23:14:23 -0500
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2011-02-14 23:14:23 -0500
commit83395d18f5105be7e7a961a526eca1e5eca9741a (patch)
tree1d77982b19f19bce60ebf01c093db2d7ba0c2cb2 /win32
parent71e10e2ef98b56b99bb2d95efd7c0b777e123fb4 (diff)
downloadlibopus-83395d18f5105be7e7a961a526eca1e5eca9741a.tar.gz
Win32 config.h
Diffstat (limited to 'win32')
-rw-r--r--win32/config.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/win32/config.h b/win32/config.h
new file mode 100644
index 00000000..7e4b48b3
--- /dev/null
+++ b/win32/config.h
@@ -0,0 +1,26 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#define CELT_BUILD 1
+#define restrict
+#define inline __inline
+
+#define USE_ALLOCA 1
+
+/* Comment out the next line for floating-point code */
+//#define FIXED_POINT 1
+
+#define OPUS_BUILD 1
+
+/* Get rid of the CELT VS compile warnings */
+#if 1
+#pragma warning(disable : 4018)// signed/unsigned mismatch
+#pragma warning(disable : 4244)// conversion from 'double' to 'celt_word16', possible loss of data
+#pragma warning(disable : 4267)// conversion from 'size_t' to 'int', possible loss of data
+#pragma warning(disable : 4305)// truncation from 'double' to 'const float'
+#pragma warning(disable : 4311)// pointer truncation from 'char *' to 'long'
+#pragma warning(disable : 4554)// check operator precedence for possible error; use parentheses to clarify precedence
+#pragma warning(disable : 4996)// This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
+#endif
+
+#endif CONFIG_H