summaryrefslogtreecommitdiff
path: root/src/libical/icalrestriction.c.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/libical/icalrestriction.c.in')
-rw-r--r--src/libical/icalrestriction.c.in21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/libical/icalrestriction.c.in b/src/libical/icalrestriction.c.in
index 87fa252..d8c03cc 100644
--- a/src/libical/icalrestriction.c.in
+++ b/src/libical/icalrestriction.c.in
@@ -1,7 +1,18 @@
/* -*- Mode: C -*- */
/* ======================================================================
File: icalrestriction.c
-
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of either:
+
+ The LGPL as published by the Free Software Foundation, version
+ 2.1, available at: http://www.fsf.org/copyleft/lesser.html
+
+ Or:
+
+ The Mozilla Public License Version 1.0. You may obtain a copy of
+ the License at http://www.mozilla.org/MPL/
+
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
======================================================================*/
/*#line 7 "icalrestriction.c.in"*/
@@ -15,7 +26,11 @@
#include "icalerror.h"
#include <assert.h>
-#include <stdio.h> /* For snprintf */
+#include <stdio.h>
+
+#if defined(_MSC_VER)
+#define snprintf _snprintf
+#endif
#define TMP_BUF_SIZE 1024
@@ -281,7 +296,7 @@ const char* icalrestriction_no_dtend(
(void)rec;
(void)prop;
- if( !icalcomponent_get_first_property(comp,ICAL_DTEND_PROPERTY)){
+ if(icalcomponent_get_first_property(comp,ICAL_DTEND_PROPERTY)){
return "Failed iTIP restrictions for DTEND property. The component must not have both DURATION and DTEND";