tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c73ccef4a753bc29e3d6589a38d1e65f462183fd

commit c73ccef4a753bc29e3d6589a38d1e65f462183fd
Author: Vincent Torri <vincent dot torri at gmail dot com>
Date:   Fri Aug 21 12:44:44 2015 +0200

    Evil: fix compilation when MSVC is not available.
    
    localtime_s is not defined in msvcrt.dll but rather is defined in
    Microsoft libc when Visual Studio or other stuff is installed.
    
    Issue introduced in:024812c1a76286991f292c3191936778ec219ff8
    
    Fixes T2681
    
    @fix
---
 src/lib/evil/evil_time.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/evil/evil_time.c b/src/lib/evil/evil_time.c
index 1c06ecb..a6984bf 100644
--- a/src/lib/evil/evil_time.c
+++ b/src/lib/evil/evil_time.c
@@ -13,7 +13,9 @@
 struct tm *
 evil_localtime_r(const time_t *timep, struct tm *result)
 {
-   localtime_s(result, timep);
+   __time64_t t = *timep;
+
+   _localtime64_s(result, &t);
 
    return result;
 }

-- 


Reply via email to