diff options
Diffstat (limited to 'lib/lib_util.h')
-rw-r--r-- | lib/lib_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lib_util.h b/lib/lib_util.h index 238d3fda4675..17ea0e0d1368 100644 --- a/lib/lib_util.h +++ b/lib/lib_util.h @@ -43,6 +43,9 @@ extern bool hastermcolors; refresh(); \ } while (0) +/* date */ +#define ISLEAP(year) ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) + /* unicode */ unsigned int strcols(const char *mbstring); int str_props(const char *mbstring, unsigned int *cols, bool *has_multi_col); |