imgtools/romtools/rofsbuild/r_build.cpp
changeset 654 7c11c3d8d025
parent 626 ac03b93ca9c4
child 671 ff8ff850b0cf
--- a/imgtools/romtools/rofsbuild/r_build.cpp	Mon Oct 25 11:53:21 2010 +0800
+++ b/imgtools/romtools/rofsbuild/r_build.cpp	Tue Oct 26 11:12:31 2010 +0800
@@ -1071,9 +1071,9 @@
 					char * buffer = new char [size];
 #if defined(__LINUX__)
 					ostrstream os((char*)aDest, aMaxSize, (ios_base::openmode)(ios_base::out+ios_base::binary));
-#elif defined(__TOOLS2__) && defined (_STLP_THREADS)
+#elif ( defined(__TOOLS2__) || defined(__MSVCDOTNET__)) && defined (_STLP_THREADS)
 					ostrstream os((char*)buffer, size,(ios_base::out+ios_base::binary));
-#elif defined( __TOOLS2__)
+#elif ( defined(__TOOLS2__) || defined(__MSVCDOTNET__))
 					ostrstream os((char*)buffer, size,(ios_base::out+ios_base::binary));
 #else
 					ostrstream os( (char*)buffer, size, (ios_base::out+ios_base::binary));
@@ -1119,10 +1119,12 @@
 				}
 			}
 
-#if defined(__TOOLS2__) && defined (_STLP_THREADS)
+#if defined(__TOOLS2__) || defined(__MSVCDOTNET__) 
+	#ifdef _STLP_THREADS
 			ostrstream os((char*)aDest, aMaxSize,(ios_base::out+ios_base::binary));
-#elif __TOOLS2__
+	#else 
 			ostrstream os((char*)aDest, aMaxSize, (_Ios_Openmode)(ios_base::out+ios_base::binary));
+	#endif
 #else
 			ostrstream os((char*)aDest, aMaxSize, (ios_base::out+ios_base::binary));
 #endif