From 558ad511446cfa1d70891d9e7c9fb1ba942d3d9a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 16 May 2013 22:02:09 +0200 Subject: Reorder #ifdef's in base_time.c --- fitz/base_time.c | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/fitz/base_time.c b/fitz/base_time.c index 3b625ec0..1b600399 100644 --- a/fitz/base_time.c +++ b/fitz/base_time.c @@ -1,11 +1,11 @@ -#ifdef _WIN32 - #include +#include "fitz.h" + +#ifdef _WIN32 #ifndef METRO #include #endif #include -#include "fitz.h" #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 @@ -13,11 +13,7 @@ #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL #endif -#if defined(_WINRT) - -void fz_gettimeofday_dummy() { } - -#else +#ifndef _WINRT struct timeval; @@ -44,7 +40,11 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) return 0; } -#endif +#else /* !_WINRT */ + +void fz_gettimeofday_dummy() { } + +#endif /* !_WINRT) */ FILE *fopen_utf8(const char *name, const char *mode) { @@ -80,8 +80,4 @@ FILE *fopen_utf8(const char *name, const char *mode) return file; } -#else - -void fz_gettimeofday_dummy() { } - -#endif +#endif /* _WIN32 */ -- cgit v1.2.3