You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by wr...@apache.org on 2002/05/31 09:47:15 UTC

cvs commit: httpd-test/flood config.h.in

wrowe       2002/05/31 00:47:15

  Modified:    flood    config.h.in
  Log:
    Insist on 64 bits, eh?  I know VC5 doesn't, dunno about VC6.  This gross
    hack isn't quite right yet, but I'll let someone who cares to build on
    VC5 polish it.
  
  Revision  Changes    Path
  1.22      +8 -1      httpd-test/flood/config.h.in
  
  Index: config.h.in
  ===================================================================
  RCS file: /home/cvs/httpd-test/flood/config.h.in,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- config.h.in	20 Mar 2002 22:27:13 -0000	1.21
  +++ config.h.in	31 May 2002 07:47:15 -0000	1.22
  @@ -68,7 +68,14 @@
   #define FLOOD_HAS_OPENSSL   @flood_has_openssl@
   #define FLOOD_HAS_DEVRAND   @flood_has_devrand@
   
  -#if !FLOOD_HAS_STRTOLL && FLOOD_HAS_STRTOQ
  +#ifdef WIN32
  +/* Gross Hack Alert */
  +#if _MSC_VER < 1300
  +#define strtoll(p, e, b) ((*(e) = (char*)(p) + ((b) == 10) ? strspn((p), "0123456789") : 0), _atoi64(p))
  +#else
  +#define strtoll(p, e, b) _strtoi64(p, e, b) 
  +#endif
  +#elif !FLOOD_HAS_STRTOLL && FLOOD_HAS_STRTOQ
   #define strtoll(p, e, b) strtoq(p, e, b)
   #endif