Comparison

util-src/time.c @ 9164:35807f02bdc7

util.time: Allow for already set constant
author Kim Alvefur <zash@zash.se>
date Sat, 11 Aug 2018 16:55:07 +0200
parent 9163:6b1f46730217
child 9680:a374905e99ff
comparison
equal deleted inserted replaced
9163:6b1f46730217 9164:35807f02bdc7
1 #ifndef _POSIX_C_SOURCE
1 #define _POSIX_C_SOURCE 199309L 2 #define _POSIX_C_SOURCE 199309L
3 #endif
2 4
3 #include <time.h> 5 #include <time.h>
4 #include <lua.h> 6 #include <lua.h>
5 7
6 lua_Number tv2number(struct timespec *tv) { 8 lua_Number tv2number(struct timespec *tv) {