Skip to content

Commit

Permalink
configure.ac, ical_support.h: declare icalrecur_freq_to_string() and …
Browse files Browse the repository at this point in the history
…icalrecur_weekday_to_string() if necessary
  • Loading branch information
ksmurchison committed Dec 23, 2015
1 parent c716187 commit b8646c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,9 @@ dnl
],
AC_MSG_ERROR([Need libical for http]))

AC_CHECK_DECLS([icalrecur_freq_to_string, icalrecur_weekday_to_string],
[], [], [[#include <libical/ical.h>]])

AC_CHECK_LIB(ical, icalparameter_new_iana, [
AC_DEFINE(HAVE_IANA_PARAMS,[],
[Do we have support for IANA params?])
Expand Down
12 changes: 12 additions & 0 deletions imap/ical_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@ extern const char *icalproperty_get_invitee(icalproperty *prop);

extern icaltimetype icalcomponent_get_recurrenceid_with_zone(icalcomponent *c);


/* Functions not declared in in libical < v2.0 */

#if !HAVE_DECL_ICALRECUR_FREQ_TO_STRING
extern const char *icalrecur_freq_to_string(icalrecurrencetype_frequency kind);
#endif

#if !HAVE_DECL_ICALRECUR_WEEKDAY_TO_STRING
extern const char *icalrecur_weekday_to_string(icalrecurrencetype_weekday kind);
#endif


#ifndef HAVE_TZDIST_PROPS

/* Functions to replace those not available in libical < v2.0 */
Expand Down

0 comments on commit b8646c1

Please sign in to comment.