mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: use &C.time_t
instead of &time_t
in C fn declaration (#11232)
This commit is contained in:
parent
d2ce1f74d6
commit
b3c641f7d5
@ -21,7 +21,7 @@ struct C.tm {
|
||||
fn C.timegm(&C.tm) C.time_t
|
||||
|
||||
// fn C.gmtime_r(&tm, &gbuf)
|
||||
fn C.localtime_r(t &time_t, tm &C.tm)
|
||||
fn C.localtime_r(t &C.time_t, tm &C.tm)
|
||||
|
||||
fn make_unix_time(t C.tm) i64 {
|
||||
return i64(C.timegm(&t))
|
||||
|
Loading…
Reference in New Issue
Block a user