[Freeswitch-svn] [commit] r5164 - in freeswitch/trunk: src w32/Library

Freeswitch SVN mikej at freeswitch.org
Sat May 12 03:29:12 EDT 2007


Author: mikej
Date: Sat May 12 03:29:12 2007
New Revision: 5164

Modified:
   freeswitch/trunk/src/switch_cpp.cpp
   freeswitch/trunk/w32/Library/FreeSwitchCore.vcproj

Log:
add switch_cpp.cpp to msvc build.  Fix some build issues and a bug.

Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp	(original)
+++ freeswitch/trunk/src/switch_cpp.cpp	Sat May 12 03:29:12 2007
@@ -1,6 +1,10 @@
 #include <switch.h>
 #include <switch_cpp.h>
 
+#ifdef _MSC_VER
+#pragma warning(disable:4127 4003)
+#endif
+
 #define sanity_check(x) do { if (!session) { switch_log_printf(SWITCH_CHANNEL_LOG,SWITCH_LOG_ERROR, "session is not initalized\n"); return x;}} while(0)
 #define init_vars() do { session = NULL; channel = NULL; uuid = NULL; tts_name = NULL; voice_name = NULL; memset(&args, 0, sizeof(args)); ap = NULL;} while(0)
 
@@ -45,7 +49,7 @@
 {
     switch_status_t status;
 	sanity_check(-1);
-    switch_channel_pre_answer(channel);
+    status = switch_channel_pre_answer(channel);
     return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
 }
 

Modified: freeswitch/trunk/w32/Library/FreeSwitchCore.vcproj
==============================================================================
--- freeswitch/trunk/w32/Library/FreeSwitchCore.vcproj	(original)
+++ freeswitch/trunk/w32/Library/FreeSwitchCore.vcproj	Sat May 12 03:29:12 2007
@@ -340,6 +340,30 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\src\switch_cpp.cpp"
+				>
+				<FileConfiguration
+					Name="Debug|Win32"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+						UsePrecompiledHeader="0"
+						PrecompiledHeaderThrough=""
+						PrecompiledHeaderFile=""
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release|Win32"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+						UsePrecompiledHeader="0"
+						PrecompiledHeaderThrough=""
+						PrecompiledHeaderFile=""
+					/>
+				</FileConfiguration>
+			</File>
+			<File
 				RelativePath="..\..\src\switch_event.c"
 				>
 			</File>
@@ -450,11 +474,11 @@
 				>
 			</File>
 			<File
-				RelativePath="..\..\src\include\private\switch_core.h"
+				RelativePath="..\..\src\include\switch_core.h"
 				>
 			</File>
 			<File
-				RelativePath="..\..\src\include\switch_core.h"
+				RelativePath="..\..\src\include\private\switch_core.h"
 				>
 			</File>
 			<File
@@ -466,6 +490,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\src\include\switch_cpp.h"
+				>
+			</File>
+			<File
 				RelativePath="..\..\src\include\switch_event.h"
 				>
 			</File>



More information about the Freeswitch-svn mailing list