Index: libical/icalrestriction.c.in =================================================================== --- libical/icalrestriction.c.in (revision 982) +++ libical/icalrestriction.c.in (working copy) @@ -26,8 +26,13 @@ #include "icalerror.h" #include -#include /* For snprintf */ +#include /* For snprintf */ + +#ifdef WIN32 +#define snprintf _snprintf +#endif + #define TMP_BUF_SIZE 1024 /* Define the structs for the restrictions. these data are filled out Index: libical/icalparameter.c =================================================================== --- libical/icalparameter.c (revision 982) +++ libical/icalparameter.c (working copy) @@ -41,6 +41,11 @@ #include /* for malloc() */ #include #include /* for memset() */ + + +#ifdef WIN32 +#define strcasecmp stricmp +#endif /* In icalderivedparameter */ icalparameter* icalparameter_new_from_value_string(icalparameter_kind kind,const char* val); Index: libical/icalrecur.c =================================================================== --- libical/icalrecur.c (revision 982) +++ libical/icalrecur.c (working copy) @@ -138,6 +138,11 @@ #ifdef HAVE_STDINT_H #include #endif + +#ifdef WIN32 +#define snprintf _snprintf +#endif + #include Index: libical/icaltimezone.c =================================================================== --- libical/icaltimezone.c (revision 982) +++ libical/icaltimezone.c (working copy) @@ -58,6 +58,7 @@ // MSVC lacks the POSIX macro S_ISDIR, however it's a trivial one: #ifndef S_ISDIR #define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR) +#define snprintf _snprintf #endif #define strcasecmp stricmp Index: libical/icalcomponent.c =================================================================== --- libical/icalcomponent.c (revision 982) +++ libical/icalcomponent.c (working copy) @@ -49,6 +49,7 @@ #ifdef WIN32 #define strncasecmp strnicmp +#define snprintf _snprintf #endif struct icalcomponent_impl Index: libical/icalenums.c =================================================================== --- libical/icalenums.c (revision 982) +++ libical/icalenums.c (working copy) @@ -35,8 +35,13 @@ #include /* For stderr */ #include /* For strncmp */ #include -#include "icalmemory.h" +#include "icalmemory.h" + +#ifdef WIN32 +#define snprintf _snprintf +#endif + /*** @brief Allowed request status values */ static const struct { Index: libical/icalduration.c =================================================================== --- libical/icalduration.c (revision 982) +++ libical/icalduration.c (working copy) @@ -40,6 +40,9 @@ #include "icalmemory.h" #include "icalvalue.h" +#ifdef WIN32 +#define snprintf _snprintf +#endif