From a0d8361575b1ee6d8c6f86b918e28aed349fc787 Mon Sep 17 00:00:00 2001 From: Yoni Fogel Date: Tue, 16 Apr 2013 23:58:03 -0400 Subject: [PATCH] Closes #1792 closes[t:1792] icc or windows has ctime_r function internally, gives bad warning Using internal version instead of overwriting git-svn-id: file:///svn/toku/tokudb@14947 c7de825b-a66e-492c-adef-691d508d4ae1 --- windows/toku_time.c | 7 ------- windows/toku_time.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/windows/toku_time.c b/windows/toku_time.c index 4be858a9f7a..d64eb854e39 100644 --- a/windows/toku_time.c +++ b/windows/toku_time.c @@ -47,10 +47,3 @@ clock_gettime(clockid_t clockid, toku_timespec_t *ts) { return -1; } -char * -ctime_r(const time_t *timep, char *buf) { - int r = ctime_s(buf, 26, timep); - assert(r == 0); - return buf; -} - diff --git a/windows/toku_time.h b/windows/toku_time.h index c2eef5047cc..887b70b4df4 100644 --- a/windows/toku_time.h +++ b/windows/toku_time.h @@ -30,8 +30,6 @@ static inline float toku_tdiff (struct timeval *a, struct timeval *b) { return (a->tv_sec - b->tv_sec) +1e-6*(a->tv_usec - b->tv_usec); } -char * ctime_r(const time_t *timep, char *buf); - #ifdef __cplusplus }; #endif