- Timestamp:
- Aug 30, 2007 9:29:17 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r4437 r4438 157 157 158 158 src/HappyHttp.cpp_CXXFLAGS.linux += -fexceptions 159 src/HappyHttp.cpp_CXXFLAGS.darwin += -fexceptions 159 160 src/VBoxDownloaderWgt.cpp_CXXFLAGS.linux += -fexceptions 161 src/VBoxDownloaderWgt.cpp_CXXFLAGS.darwin += -fexceptions 160 162 161 163 ## @todo how to detect what tool is used? -
trunk/src/VBox/Frontends/VirtualBox/src/HappyHttp.cpp
r4436 r4438 28 28 #include "HappyHttp.h" 29 29 30 #ifndef __WIN32__30 #ifndef RT_OS_WINDOWS 31 31 // #include <sys/types.h> 32 32 #include <sys/socket.h> … … 37 37 #endif 38 38 39 #ifdef __WIN32__39 #ifdef RT_OS_WINDOWS 40 40 #include <winsock2.h> 41 41 #define vsnprintf _vsnprintf … … 62 62 { 63 63 64 #ifdef __WIN32__64 #ifdef RT_OS_WINDOWS 65 65 const char* GetWinsockErrorString( int err ); 66 66 #endif … … 75 75 void BailOnSocketError( const char* context ) 76 76 { 77 #ifdef __WIN32__77 #ifdef RT_OS_WINDOWS 78 78 79 79 int e = WSAGetLastError(); … … 86 86 87 87 88 #ifdef __WIN32__88 #ifdef RT_OS_WINDOWS 89 89 90 90 const char* GetWinsockErrorString( int err ) … … 147 147 }; 148 148 149 #endif // __WIN32__149 #endif // RT_OS_WINDOWS 150 150 151 151 … … 181 181 // First try nnn.nnn.nnn.nnn form 182 182 saddr.s_addr = inet_addr(address); 183 if (saddr.s_addr != (in_addr_t)-1)183 if (saddr.s_addr != INADDR_NONE) 184 184 return &saddr; 185 185 … … 277 277 void Connection::close() 278 278 { 279 #ifdef __WIN32__279 #ifdef RT_OS_WINDOWS 280 280 if( m_Sock >= 0 ) 281 281 ::closesocket( m_Sock ); … … 417 417 while( numbytes > 0 ) 418 418 { 419 #ifdef __WIN32__419 #ifdef RT_OS_WINDOWS 420 420 int n = ::send( m_Sock, (const char*)buf, numbytes, 0 ); 421 421 #else
Note:
See TracChangeset
for help on using the changeset viewer.