dumb mod just to test meson

This commit is contained in:
Joao Antonio Cardoso 2020-03-20 20:12:32 -03:00 committed by João Paulo Taylor Ienczak Zanette
parent d0033ba6d4
commit 633d5cec91
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#include<sys/time.h>
#include<time.h>
int gettimeofday(struct timeval * tp, struct timezone * tzp)
{
@ -20,6 +20,8 @@ int gettimeofday(struct timeval * tp, struct timezone * tzp)
return 0;
}
int localtime_s(struct tm * result, const time_t * time){ return 0; }
struct tm *localtime_r(const time_t * time, struct tm * result)
{
localtime_s(result, time);

View File

@ -7,6 +7,7 @@
// Windows Kit for Windows 10 already defines `struct timeval` and `time_t`
#include <winsock2.h>
#include <time.h>
#include <stdint.h>
typedef unsigned short u_short;