]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Define Glibc specific __isleap when it is not defined.
authorLeo <thinkabit.ukim@gmail.com>
Sun, 24 Nov 2019 18:59:54 +0000 (19:59 +0100)
committerLeo <thinkabit.ukim@gmail.com>
Sun, 24 Nov 2019 18:59:54 +0000 (19:59 +0100)
client/utils/equal-date.h

index 51ec49aaa9d7c3d68e590c3f736b2b28081ee7df..835208c7c38dbb3adff2119280a3795f62db72e8 100644 (file)
  * find current contact information at www.novell.com.
  */
 
+#if !defined(__isleap)
+/* Nonzero if YEAR is a leap year (every 4 years,
+   except every 100th isn't, and every 400th is).  */
+# define __isleap(year)        \
+  ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
+#endif
+
 
 bool
 equal_year(const struct tm& tmp1, const struct tm& tmp2);