diff options
author | Ken Murchison <murch@fastmail.com> | 2021-03-27 06:27:45 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2021-04-11 14:39:06 -0400 |
commit | c52c94e044c896cca78b8252c76677bc71afefe2 (patch) | |
tree | 01ce2d67a8b80b28bd77cd741b716c1fafb4f2b1 | |
parent | 06a94947715d9cdb5894e66dee1e81567f8f19c3 (diff) | |
download | libical-git-c52c94e044c896cca78b8252c76677bc71afefe2.tar.gz |
icaltz-util.c: we don't have icalrecurrencetype_encode_day() in the 3.0 branch
-rw-r--r-- | src/libical/icaltz-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libical/icaltz-util.c b/src/libical/icaltz-util.c index 062133ec..64c575f8 100644 --- a/src/libical/icaltz-util.c +++ b/src/libical/icaltz-util.c @@ -270,7 +270,7 @@ static char *parse_posix_zone(char *p, ttinfo *type) return p; } -#define nth_weekday(week, day) (icalrecurrencetype_encode_day(day, week)) +#define nth_weekday(week, day) ((day + (8 * abs(week))) * ((week < 0) ? -1 : 1)) static char *parse_posix_rule(char *p, struct icalrecurrencetype *recur, icaltimetype *t) |