aboutsummaryrefslogtreecommitdiffstats
path: root/community/at/10-parsetime.y-1.patch
blob: 9e8a33234e2b6f1325b49ccaf68c926e0d6c8c7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- parsetime.orig.y
+++ parsetime.y
@@ -17,6 +17,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 {