util/clock.c: Use #define constants

MSVC doesn't allow chaining of const expressions grumble grumble
(need to use constexpr, which is a. an extremely ugly looking
reserved word and b. exclusive to C++)
This commit is contained in:
Tau 2018-11-23 18:23:41 -05:00
parent 42a79933f1
commit dc082c77eb
1 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,9 @@ static const struct hook_symbol clock_hook_syms[] = {
/* FILETIME is expressed in 100ns i.e. 0.1us i.e. 10^-7 sec units.
No official name for these units is given so let's call them "jiffies". */
static const int64_t jiffies_per_sec = 10000000LL;
static const int64_t jiffies_per_hour = jiffies_per_sec * 3600LL;
static const int64_t jiffies_per_day = jiffies_per_hour * 24LL;
#define jiffies_per_sec 10000000LL
#define jiffies_per_hour (jiffies_per_sec * 3600LL)
#define jiffies_per_day (jiffies_per_hour * 24LL)
static void WINAPI my_GetSystemTimeAsFileTime(FILETIME *out)
{