diff options
Diffstat (limited to 'xfa/src/fgas/src/localization/fx_datetime.cpp')
-rw-r--r-- | xfa/src/fgas/src/localization/fx_datetime.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/xfa/src/fgas/src/localization/fx_datetime.cpp b/xfa/src/fgas/src/localization/fx_datetime.cpp index 76b7eb14d6..1d4a73672c 100644 --- a/xfa/src/fgas/src/localization/fx_datetime.cpp +++ b/xfa/src/fgas/src/localization/fx_datetime.cpp @@ -4,7 +4,14 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#if _FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_ || \ + _FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_ +#include <sys/time.h> +#include <time.h> +#endif + #include "xfa/src/fgas/src/fgas_base.h" + const uint8_t g_FXDaysPerMonth[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; const uint8_t g_FXDaysPerLeapMonth[12] = {31, 29, 31, 30, 31, 30, @@ -122,11 +129,7 @@ static void FX_DaysToDate(int64_t iDays, } iDay += (uint8_t)iDays; } -#if _FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_ || \ - _FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_ -#include <time.h> -#include <sys/time.h> -#endif + typedef struct _FXUT_SYSTEMTIME { FX_WORD wYear; FX_WORD wMonth; |