Skip to content

Commit

Permalink
g.version: Fix February print (#366)
Browse files Browse the repository at this point in the history
* g.version: Fix February print

* g.version: month 1-12
  • Loading branch information
HuidaeCho committed Feb 23, 2020
1 parent d54152d commit 1028aec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions general/g.version/local_proto.h
Expand Up @@ -5,9 +5,9 @@
#define YEAR ((((__DATE__ [7]-'0')*10+(__DATE__[8]-'0'))*10+\
(__DATE__ [9]-'0'))*10+(__DATE__ [10]-'0'))

/* month: 0 - 11 */
/* month: 1 - 12 */
#define MONTH (__DATE__ [2] == 'n' ? (__DATE__ [1] == 'a' ? 1 : 6) \
: __DATE__ [2] == 'b' ? 1 \
: __DATE__ [2] == 'b' ? 2 \
: __DATE__ [2] == 'r' ? (__DATE__ [0] == 'M' ? 3 : 4) \
: __DATE__ [2] == 'y' ? 5 \
: __DATE__ [2] == 'l' ? 7 \
Expand Down

0 comments on commit 1028aec

Please sign in to comment.