Index: xfa/src/fgas/src/localization/fx_datetime.cpp |
diff --git a/xfa/src/fgas/src/localization/fx_datetime.cpp b/xfa/src/fgas/src/localization/fx_datetime.cpp |
index 76b7eb14d65d8e8f3aed66de3ed38dab265babc3..1d4a73672c8a9a93edf3eb3b41fb5da37ff0b16d 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; |