R0.10c with patch 2

November 26, 2014

_FS_NORTC feature does not work properly.
This commit is contained in:
Christopher Williams
2015-01-31 09:51:06 -07:00
parent 0e89a5798f
commit 40fee11f59
+5 -2
View File
@@ -163,8 +163,11 @@
/* Timestamp feature */ /* Timestamp feature */
#if _FS_NORTC #if _FS_NORTC == 1
#define GET_FATTIME() ((DWORD)_NORTC_YEAR << 25 | (DWORD)_NORTC_MON << 21 | (DWORD)_NORTC_MDAY << 16) #if _NORTC_YEAR < 1980 || _NORTC_YEAR > 2107 || _NORTC_MON < 1 || _NORTC_MON > 12 || _NORTC_MDAY < 1 || _NORTC_MDAY > 31
#error Invalid _FS_NORTC settings
#endif
#define GET_FATTIME() ((DWORD)(_NORTC_YEAR - 1980) << 25 | (DWORD)_NORTC_MON << 21 | (DWORD)_NORTC_MDAY << 16)
#else #else
#define GET_FATTIME() get_fattime() #define GET_FATTIME() get_fattime()
#endif #endif