|
@@ -31,6 +31,8 @@
|
|
|
|
|
|
|
|
#include <time.h> /* Needed for localtime() */
|
|
#include <time.h> /* Needed for localtime() */
|
|
|
|
|
|
|
|
|
|
+bool SDLTest_Time = true;
|
|
|
|
|
+
|
|
|
/* work around compiler warning on older GCCs. */
|
|
/* work around compiler warning on older GCCs. */
|
|
|
#if (defined(__GNUC__) && (__GNUC__ <= 2))
|
|
#if (defined(__GNUC__) && (__GNUC__ <= 2))
|
|
|
static size_t strftime_gcc2_workaround(char *s, size_t max, const char *fmt, const struct tm *tm)
|
|
static size_t strftime_gcc2_workaround(char *s, size_t max, const char *fmt, const struct tm *tm)
|
|
@@ -61,6 +63,10 @@ static const char *SDLTest_TimestampToString(const time_t timestamp)
|
|
|
struct tm *local;
|
|
struct tm *local;
|
|
|
size_t result = 0;
|
|
size_t result = 0;
|
|
|
|
|
|
|
|
|
|
+ if (!SDLTest_Time) {
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
SDL_memset(buffer, 0, sizeof(buffer));
|
|
SDL_memset(buffer, 0, sizeof(buffer));
|
|
|
copy = timestamp;
|
|
copy = timestamp;
|
|
|
local = localtime(©);
|
|
local = localtime(©);
|