You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by br...@apache.org on 2001/10/09 01:09:09 UTC

cvs commit: apr/include/arch/win32 apr_private.h

brane       01/10/08 16:09:09

  Modified:    include/arch/win32 apr_private.h
  Log:
  Get rid of warnings about redefinition of 'strcasecmp', as it's already
  defined in apr_general.h, and put 'sleep's parameter in parens in the
  macro expansion, for safety.
  
  Tested with a complete Win32 build of httpd-2.0; no warnings, no errors.
  
  Revision  Changes    Path
  1.26      +1 -2      apr/include/arch/win32/apr_private.h
  
  Index: apr_private.h
  ===================================================================
  RCS file: /home/cvs/apr/include/arch/win32/apr_private.h,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- apr_private.h	2001/09/28 14:05:23	1.25
  +++ apr_private.h	2001/10/08 23:09:09	1.26
  @@ -138,8 +138,7 @@
    */
   typedef void (Sigfunc)(int);
   
  -#define strcasecmp(s1, s2)       stricmp(s1, s2)
  -#define sleep(t)                 Sleep(t * 1000)
  +#define sleep(t)                 Sleep((t) * 1000)
   
   #define SIZEOF_SHORT           2
   #define SIZEOF_INT             4