summaryrefslogtreecommitdiff
path: root/system/at/10-parsetime.y-1.patch
blob: c8f4c386712115a3d501942a6392f00a63aa287f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ./parsetime.orig.y
+++ ./parsetime.y
@@ -24,6 +24,11 @@
 extern int yylex();
 
 int add_date(int number, int period);
+
+#ifndef __isleap
+#define __isleap(year) ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
+#endif
+
 %}
 
 %union {