apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/time/win32 time.c
Date Tue, 12 Feb 2002 01:18:14 GMT
wrowe       02/02/11 17:18:13

  Modified:    time/win32 time.c
  Log:
    GetSystemTimeAsFileTime is great!  Unfortuantely, WCE's designers
    didn't agree.  Submitted by Mladen Turk <mturk@mappingsoft.com>
    for his WinCE port.
  
  Revision  Changes    Path
  1.25      +6 -0      apr/time/win32/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apr/time/win32/time.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- time.c	30 Jun 2001 09:50:30 -0000	1.24
  +++ time.c	12 Feb 2002 01:18:13 -0000	1.25
  @@ -131,7 +131,13 @@
   {
       LONGLONG aprtime = 0;
       FILETIME time;
  +#ifndef _WIN32_WCE
       GetSystemTimeAsFileTime(&time);
  +#else
  +    SYSTEMTIME st;
  +    GetSystemTime(&st);
  +    SystemTimeToFileTime(&st, &time);
  +#endif
       FileTimeToAprTime(&aprtime, &time);
       return aprtime; 
   }
  
  
  

Mime
View raw message