summaryrefslogtreecommitdiff
path: root/navit/support/libc/timeutil.h
blob: 9e5f70886a720abcf8f0912ab9fdfb7aa2440b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __TIMEUTIL_H
#define __TIMEUTIL_H

#include <windows.h>
#include <sys/time.h>
#include <_mingw.h>

#define _onesec_in100ns 10000000LL

extern long long __FILETIME_to_ll (const FILETIME *f);
extern void __ll_to_FILETIME (long long t, FILETIME* f);
extern void __tm_to_SYSTEMTIME (struct tm *, SYSTEMTIME *);
extern void __SYSTEMTIME_to_tm (SYSTEMTIME *, struct tm *);
extern time_t __FILETIME_to_time_t (const FILETIME *);
extern void __time_t_to_FILETIME (time_t, FILETIME *);

#endif