#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
+#include <ical.h>
#include <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "serv_calendar.h"
#include "euidindex.h"
#include "ctdl_module.h"
-
-#ifdef CITADEL_WITH_CALENDAR_SERVICE
-
-#include <ical.h>
#include "ical_dezonify.h"
icaltimezone_free_builtin_timezones();
}
-#endif /* CITADEL_WITH_CALENDAR_SERVICE */
-
/*
* Register this module with the Citadel server.
*/
{
if (!threading)
{
-#ifdef CITADEL_WITH_CALENDAR_SERVICE
CtdlRegisterMessageHook(ical_obj_beforesave, EVT_BEFORESAVE);
CtdlRegisterMessageHook(ical_obj_aftersave, EVT_AFTERSAVE);
CtdlRegisterSessionHook(ical_create_room, EVT_LOGIN);
CtdlRegisterFixedOutputHook("text/calendar", ical_fixed_output);
CtdlRegisterFixedOutputHook("application/ics", ical_fixed_output);
CtdlRegisterCleanupHook(serv_calendar_destroy);
-#endif
}
/* return our Subversion id for the Log */