blob: 3eb0549e3dab5becb0ceff9aec63e212c57ed5da (
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 {
|