Merge pull request #75 from henrygab/patch-1
Fix bug in `__DOSTIME__` macro
This commit is contained in:
commit
a921f27ee8
@ -43,10 +43,10 @@ SOFTWARE.
|
||||
: (__DATE__ [2u] == 'y' ) ? 5u /*May*/ \
|
||||
: (__DATE__ [2u] == 'n' ) ? 6u /*Jun*/ \
|
||||
: (__DATE__ [2u] == 'l' ) ? 7u /*Jul*/ \
|
||||
: (__DATE__ [2u] == 'g' ) ? 8u /*Jul*/ \
|
||||
: (__DATE__ [2u] == 'p' ) ? 9u /*Jul*/ \
|
||||
: (__DATE__ [2u] == 't' ) ? 10u /*Jul*/ \
|
||||
: (__DATE__ [2u] == 'v' ) ? 11u /*Jul*/ \
|
||||
: (__DATE__ [2u] == 'g' ) ? 8u /*Aug*/ \
|
||||
: (__DATE__ [2u] == 'p' ) ? 9u /*Sep*/ \
|
||||
: (__DATE__ [2u] == 't' ) ? 10u /*Oct*/ \
|
||||
: (__DATE__ [2u] == 'v' ) ? 11u /*Nov*/ \
|
||||
: 12u /*Dec*/ )
|
||||
|
||||
#define __DAY_INT__ ( \
|
||||
@ -75,8 +75,8 @@ SOFTWARE.
|
||||
|
||||
#define __DOSTIME__ ( \
|
||||
( __HOUR_INT__ << 11u) | \
|
||||
( __MONTH_INT__ << 5u) | \
|
||||
( __DAY_INT__ << 0u) )
|
||||
( __MINUTE_INT__ << 5u) | \
|
||||
( __SECONDS_INT__ << 0u) )
|
||||
|
||||
#endif // COMPILE_DATE_H
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user