mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-09 23:37:05 +02:00
15 lines
254 B
Diff
15 lines
254 B
Diff
--- ./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 {
|