#include <strings.h>
#include <inttypes.h>
#include <limits.h>
+// CONFIG_MARU MODIFICATION
+// recent MinGW-w64 provides gmtime_r(), localtime_r(). we use them.
+// for that, unistd.h should be included before time.h
+#include <unistd.h>
#include <time.h>
#include <ctype.h>
#include <errno.h>
-#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>
#define sigsetjmp(env, savemask) setjmp(env)
#define siglongjmp(env, val) longjmp(env, val)
-/* Missing POSIX functions. Don't use MinGW-w64 macros. */
// CONFIG_MARU MODIFICATION
-#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wredundant-decls"
-#endif
+// recent MinGW-w64 provides gmtime_r(), localtime_r(). we use them.
+#if 0
+/* Missing POSIX functions. Don't use MinGW-w64 macros. */
#undef gmtime_r
struct tm *gmtime_r(const time_t *timep, struct tm *result);
#undef localtime_r
struct tm *localtime_r(const time_t *timep, struct tm *result);
-#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
-#pragma GCC diagnostic pop
#endif
}
}
+// CONFIG_MARU MODIFICATION
+// recent MinGW-w64 provides gmtime_r(), localtime_r(). we use them.
+#if 0
/* FIXME: add proper locking */
struct tm *gmtime_r(const time_t *timep, struct tm *result)
{
}
return p;
}
+#endif
void qemu_set_block(int fd)
{