diff options
author | Pixel <pixel@nobis-crew.org> | 2011-10-11 16:45:31 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-10-11 16:45:31 -0700 |
commit | ead67afc96cdff3e74bb616e8e3a8b0a7695a28a (patch) | |
tree | 4d074d11a7983bdbde3f6da7d311cddd9696ef0d /tests | |
parent | d2252afcd74af0248c6141c8086d03e12a0a316f (diff) |
Making the project compile with mingw32, on the same Makefile. No more separate Makefiles insanity.
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; |