You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/02/10 05:58:22 UTC

svn commit: r376549 - in /webservices/axis2/trunk/c: include/axis2_log.h modules/util/log.c

Author: samisa
Date: Thu Feb  9 20:58:20 2006
New Revision: 376549

URL: http://svn.apache.org/viewcvs?rev=376549&view=rev
Log:
Workaround added to get this working on windows

Modified:
    webservices/axis2/trunk/c/include/axis2_log.h
    webservices/axis2/trunk/c/modules/util/log.c

Modified: webservices/axis2/trunk/c/include/axis2_log.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_log.h?rev=376549&r1=376548&r2=376549&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_log.h (original)
+++ webservices/axis2/trunk/c/include/axis2_log.h Thu Feb  9 20:58:20 2006
@@ -125,8 +125,8 @@
 AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_info(axis2_log_t *log, const axis2_char_t *format,...);
 
 AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_debug(axis2_log_t *log,const axis2_char_t *filename,const int linenumber,const axis2_char_t *format,...);
-AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_trace(axis2_log_t *log,const axis2_char_t *filename,const int linenumber,const axis2_char_t *format,...);
 
+AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_trace(axis2_log_t *log,const axis2_char_t *filename,const int linenumber,const axis2_char_t *format,...);
 
 #define AXIS2_LOG_FREE(allocator, log) ((log->ops)->free(allocator, log))
 
@@ -141,7 +141,11 @@
 #ifdef AXIS2_TRACE
 #define AXIS2_LOG_TRACE axis2_log_impl_log_trace
 #else
-#define AXIS2_LOG_TRACE(params, args ...) 
+  #ifdef WIN32
+  #define AXIS2_LOG_TRACE axis2_log_impl_log_trace
+  #else
+  #define AXIS2_LOG_TRACE(params, args ...)
+  #endif
 #endif
 
 /** @} */

Modified: webservices/axis2/trunk/c/modules/util/log.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/log.c?rev=376549&r1=376548&r2=376549&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/log.c (original)
+++ webservices/axis2/trunk/c/modules/util/log.c Thu Feb  9 20:58:20 2006
@@ -338,6 +338,7 @@
     return time_str;
 }
 
+#ifdef AXIS2_TRACE
 AXIS2_DECLARE(axis2_status_t)
 axis2_log_impl_log_trace(axis2_log_t *log, const axis2_char_t *filename,
 	   	const int linenumber, const axis2_char_t *format,...)
@@ -365,4 +366,7 @@
 	}
 	return 0;
 }
+#else
+AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_trace(axis2_log_t *log,const axis2_char_t *filename,const int linenumber,const axis2_char_t *format,...) {}
+#endif