From ead67afc96cdff3e74bb616e8e3a8b0a7695a28a Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 11 Oct 2011 16:45:31 -0700 Subject: Making the project compile with mingw32, on the same Makefile. No more separate Makefiles insanity. --- tests/test-Handles.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') 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 #include +#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; -- cgit v1.2.3