aboutsummaryrefslogtreecommitdiff
path: root/contrib/bsddialog/lib/lib_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bsddialog/lib/lib_util.h')
-rw-r--r--contrib/bsddialog/lib/lib_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/bsddialog/lib/lib_util.h b/contrib/bsddialog/lib/lib_util.h
index 238d3fda4675..17ea0e0d1368 100644
--- a/contrib/bsddialog/lib/lib_util.h
+++ b/contrib/bsddialog/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);