1069 //TODO the checking will slow down the build process, should do it later along with the writing on aDest. |
1069 //TODO the checking will slow down the build process, should do it later along with the writing on aDest. |
1070 TUint32 compressedSize; |
1070 TUint32 compressedSize; |
1071 char * buffer = new char [size]; |
1071 char * buffer = new char [size]; |
1072 #if defined(__LINUX__) |
1072 #if defined(__LINUX__) |
1073 ostrstream os((char*)aDest, aMaxSize, (ios_base::openmode)(ios_base::out+ios_base::binary)); |
1073 ostrstream os((char*)aDest, aMaxSize, (ios_base::openmode)(ios_base::out+ios_base::binary)); |
1074 #elif defined(__TOOLS2__) && defined (_STLP_THREADS) |
1074 #elif ( defined(__TOOLS2__) || defined(__MSVCDOTNET__)) && defined (_STLP_THREADS) |
1075 ostrstream os((char*)buffer, size,(ios_base::out+ios_base::binary)); |
1075 ostrstream os((char*)buffer, size,(ios_base::out+ios_base::binary)); |
1076 #elif defined( __TOOLS2__) |
1076 #elif ( defined(__TOOLS2__) || defined(__MSVCDOTNET__)) |
1077 ostrstream os((char*)buffer, size,(ios_base::out+ios_base::binary)); |
1077 ostrstream os((char*)buffer, size,(ios_base::out+ios_base::binary)); |
1078 #else |
1078 #else |
1079 ostrstream os( (char*)buffer, size, (ios_base::out+ios_base::binary)); |
1079 ostrstream os( (char*)buffer, size, (ios_base::out+ios_base::binary)); |
1080 #endif |
1080 #endif |
1081 os << f; |
1081 os << f; |
1117 |
1117 |
1118 return size; |
1118 return size; |
1119 } |
1119 } |
1120 } |
1120 } |
1121 |
1121 |
1122 #if defined(__TOOLS2__) && defined (_STLP_THREADS) |
1122 #if defined(__TOOLS2__) || defined(__MSVCDOTNET__) |
|
1123 #ifdef _STLP_THREADS |
1123 ostrstream os((char*)aDest, aMaxSize,(ios_base::out+ios_base::binary)); |
1124 ostrstream os((char*)aDest, aMaxSize,(ios_base::out+ios_base::binary)); |
1124 #elif __TOOLS2__ |
1125 #else |
1125 ostrstream os((char*)aDest, aMaxSize, (_Ios_Openmode)(ios_base::out+ios_base::binary)); |
1126 ostrstream os((char*)aDest, aMaxSize, (_Ios_Openmode)(ios_base::out+ios_base::binary)); |
|
1127 #endif |
1126 #else |
1128 #else |
1127 ostrstream os((char*)aDest, aMaxSize, (ios_base::out+ios_base::binary)); |
1129 ostrstream os((char*)aDest, aMaxSize, (ios_base::out+ios_base::binary)); |
1128 #endif |
1130 #endif |
1129 os << f; |
1131 os << f; |
1130 size = os.pcount(); |
1132 size = os.pcount(); |