You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2005/04/27 09:39:38 UTC

cvs commit: jakarta-tomcat-connectors/jk/native/common jk_util.c

mturk       2005/04/27 00:39:38

  Modified:    jk/native/common jk_util.c
  Log:
  Hack to support building with free Visual C++ Toolkit 2003 using MSVCRT
  libraries.
  
  Revision  Changes    Path
  1.64      +7 -1      jakarta-tomcat-connectors/jk/native/common/jk_util.c
  
  Index: jk_util.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_util.c,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- jk_util.c	26 Apr 2005 15:28:18 -0000	1.63
  +++ jk_util.c	27 Apr 2005 07:39:38 -0000	1.64
  @@ -89,6 +89,7 @@
   #define HUGE_BUFFER_SIZE (8*1024)
   #define LOG_LINE_SIZE    (1024)
   
  +
   /*
    * define the log format, we're using by default the one from error.log
    *
  @@ -99,6 +100,11 @@
   #define JK_TIME_FORMAT "[%a %b %d %H:%M:%S %Y] "
   #endif
   
  +/* Visual C++ Toolkit 2003 support */
  +#if defined (_MSC_VER) && (_MSC_VER == 1310)
  +    extern long _ftol(double); /* defined by VC6 C libs */
  +    extern long _ftol2(double dblSource) { return _ftol(dblSource); }
  +#endif
   
   static const char *jk_level_werbs[] = {
       "[" JK_LOG_TRACE_VERB "] ",
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org