Home » U++ Library support » U++ Core » bug in http.cpp  
	
		
		
			| bug in http.cpp  [message #35911] | 
			Mon, 02 April 2012 16:32   | 
		 
		
			
				
				
				
					
						  
						borbek
						 Messages: 31 Registered: November 2010  Location: Russia
						
					 | 
					Member  | 
					 | 
		 
		 
	 | 
 
	
		";" missing in #define LLOG(x)   LOG(x) 
 
 
#include "Core.h"
NAMESPACE_UPP
bool HttpRequest_Trace__;
#ifdef _DEBUG
#define LLOG(x)      LOG(x)   
#else
#define LLOG(x)      if(HttpRequest_Trace__) RLOG(x); else;
#endif
  
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |  
	
		
		
			| Re: bug in http.cpp  [message #35943 is a reply to message #35911] | 
			Sat, 07 April 2012 18:55    | 
		 
		
			| 
				
	 | 
 
	
		I think I found one more bug in the new socket stuff... Since revision 4752 there is a __stdcall attribute in Core/Web.h (line 33), which breaks compilation on Linux (it is MSVC only attribute, right?). 
 
Fix is just to remove it or make it #ifdef PLATFORM_WIN32 
 
Best regards, 
Honza
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	
		
		
			| Re: bug in http.cpp  [message #35944 is a reply to message #35943] | 
			Sat, 07 April 2012 20:32   | 
		 
		
			| 
				
	 | 
 
	
		| dolik.rce wrote on Sat, 07 April 2012 18:55 |   I think I found one more bug in the new socket stuff... Since revision 4752 there is a __stdcall attribute in Core/Web.h (line 33), which breaks compilation on Linux (it is MSVC only attribute, right?). 
 
Fix is just to remove it or make it #ifdef PLATFORM_WIN32 
 
Best regards, 
Honza
  |  
  
 
PS: Unfortunately, I found also bunch of similar and other bugs in Socket.cpp. The latest changes probably don't compile on any other platforms than win32   Maybe it is time to set up some automated testing? It would sure caught a lot of mistakes like this...
		
		
		
 |  
	| 
		
	 | 
 
 
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 01:40:06 CET 2025 
 Total time taken to generate the page: 0.04874 seconds 
 |