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