diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-Handles.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-Handles.cc b/tests/test-Handles.cc index 36ad998..dffdc9a 100644 --- a/tests/test-Handles.cc +++ b/tests/test-Handles.cc @@ -1,6 +1,16 @@ #include <Main.h> #include <Input.h> +#ifdef _WIN32 +void ctime_r(const time_t * t, char * str) { +#ifdef _MSVC + ctime_s(str, 32, t); +#else + strcpy(str, ctime(t)); +#endif +} +#endif + BALAU_STARTUP; using namespace Balau; |