flex_isleap.patch 319 B

12345678910111213
  1. --- parsetime.y.orig 2015-05-11 15:16:53.018305563 +0200
  2. +++ parsetime.y 2015-05-11 15:17:22.820153470 +0200
  3. @@ -6,6 +6,10 @@
  4. #include "parsetime.h"
  5. #include "panic.h"
  6. +#ifndef __isleap
  7. +#define __isleap(year) ((year)%4 == 0 && ((year)%100 != 0 || (year)%400 == 0))
  8. +#endif
  9. +
  10. #define YYDEBUG 1
  11. struct tm exectm;