remove syntax error
[citadel.git] / citadel / modules / calendar / serv_calendar.c
index f727a5555d3a387a591ca8826d4e37b52ca3a5a6..b91600c08eed280ea7e6cb2d5fb36193cd470e96 100644 (file)
@@ -2580,7 +2580,12 @@ CTDL_MODULE_INIT(calendar)
        {
 
                /* Tell libical to return errors instead of aborting if it gets bad data */
+
+#ifdef LIBICAL_ICAL_EXPORT     // cheap and sleazy way to detect libical >=2.0
+               icalerror_set_errors_are_fatal(0);
+#else
                icalerror_errors_are_fatal = 0;
+#endif
 
                /* Use our own application prefix in tzid's generated from system tzdata */
                icaltimezone_set_tzid_prefix("/citadel.org/");