diff options
author | Mike Turvey <mturvey6@gmail.com> | 2018-03-10 23:07:43 -0700 |
---|---|---|
committer | Mike Turvey <mturvey6@gmail.com> | 2018-03-10 23:10:19 -0700 |
commit | 5e59c6805ff7555930c9f10097cda6d90d57ee78 (patch) | |
tree | b96aef00ab3f2053c87c1b6b11c49f09ac045852 /data_recorder.c | |
parent | c3f6a9a94575035b4226fc646989d561efe5c3f4 (diff) | |
download | libsurvive-5e59c6805ff7555930c9f10097cda6d90d57ee78.tar.gz libsurvive-5e59c6805ff7555930c9f10097cda6d90d57ee78.tar.bz2 |
Fix MSVC build
Diffstat (limited to 'data_recorder.c')
-rw-r--r-- | data_recorder.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/data_recorder.c b/data_recorder.c index 80e95be..8116946 100644 --- a/data_recorder.c +++ b/data_recorder.c @@ -12,9 +12,13 @@ #include <stdlib.h> #include <string.h> #include <survive.h> -#include <sys/time.h> + #include <time.h> +#ifndef _MSC_VER +#include <sys/time.h> +#endif + #include "redist/os_generic.h" struct SurviveContext *ctx; @@ -50,7 +54,7 @@ double timestamp_in_us() { return OGGetAbsoluteTime() - start_time_us; } -int write_to_output(const char *format, ...) { +void write_to_output(const char *format, ...) { va_list args; va_start(args, format); fprintf(output_file, "%0.6f ", timestamp_in_us()); |