diff options
author | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-04-29 13:16:21 +0300 |
---|---|---|
committer | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-04-29 13:16:21 +0300 |
commit | bf45a9986a7d0d828dd6824fef757c7941052220 (patch) | |
tree | ee2d516d1f438062597ad92112f9324402ad0aae | |
parent | 074ba10c3623bd4be7ce6d9c0f87918323dc2dd0 (diff) |
Don't use ctime_s(); it's only there in C++11.
In fact on Linux I'm not seeing this function at all. But plain old ctime()
compiles just as well on both Linux and Windows.
-rw-r--r-- | mgizapp/src/utility.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mgizapp/src/utility.cpp b/mgizapp/src/utility.cpp index 15b4783..87051d2 100644 --- a/mgizapp/src/utility.cpp +++ b/mgizapp/src/utility.cpp @@ -32,15 +32,7 @@ double factorial(int n) f *= i; return f; } -#ifdef WIN32 -string my_ctime(const time_t* t){ - char buffer[256]; - ctime_s(buffer,256,t); - return buffer; -} -#else string my_ctime(const time_t* t){ return ctime(t); } -#endif |