From 45681b240ba51af33762b025727b6ef5cba19d68 Mon Sep 17 00:00:00 2001 From: ludwig Date: Tue, 10 Feb 2009 07:56:56 +0000 Subject: fix msvc build (#3857, #3771) git-svn-id: svn://svn.icculus.org/quake3/trunk@1497 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/libspeex/include/speex/config.h | 20 +++ misc/msvc/quake3.vcproj | 277 +++++++++++++++++++++++++++-------- 2 files changed, 239 insertions(+), 58 deletions(-) create mode 100644 code/libspeex/include/speex/config.h diff --git a/code/libspeex/include/speex/config.h b/code/libspeex/include/speex/config.h new file mode 100644 index 0000000..abd35f0 --- /dev/null +++ b/code/libspeex/include/speex/config.h @@ -0,0 +1,20 @@ +// 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 +#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 diff --git a/misc/msvc/quake3.vcproj b/misc/msvc/quake3.vcproj index 56583e0..40b5dc1 100644 --- a/misc/msvc/quake3.vcproj +++ b/misc/msvc/quake3.vcproj @@ -214,7 +214,7 @@ OutputDirectory="..\..\build\quake3_release" IntermediateDirectory="..\..\build\quake3_release" ConfigurationType="1" - UseOfMFC="0" + UseOfMFC="1" ATLMinimizesCRunTimeLibraryUsage="false" > - - - - @@ -2590,47 +2583,47 @@ Name="Header Files" > @@ -2979,6 +2972,174 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3