[Freeswitch-svn] [commit] r8680 - freeswitch/trunk/libs/voipcodecs/src
Freeswitch SVN
mikej at freeswitch.org
Mon May 26 21:42:45 EDT 2008
Author: mikej
Date: Mon May 26 21:42:45 2008
New Revision: 8680
Modified:
freeswitch/trunk/libs/voipcodecs/src/lpc10_decode.c
Log:
fix for broken msvc 2005 math.h
Modified: freeswitch/trunk/libs/voipcodecs/src/lpc10_decode.c
==============================================================================
--- freeswitch/trunk/libs/voipcodecs/src/lpc10_decode.c (original)
+++ freeswitch/trunk/libs/voipcodecs/src/lpc10_decode.c Mon May 26 21:42:45 2008
@@ -43,6 +43,13 @@
#if defined(HAVE_MATH_H)
#include <math.h>
#endif
+#if (_MSC_VER = 1400) /* fix for broken header files with msvc 2005*/
+#if !defined (_M_IA64) && !defined (_M_AMD64)
+#undef logf
+#define logf(x) ((float)log((double)(x)))
+#endif // !defined (_M_IA64) && !defined (_M_AMD64)
+#endif
+
#include <memory.h>
#include "voipcodecs/telephony.h"
More information about the Freeswitch-svn
mailing list