diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-11 06:47:44 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-11 06:47:44 +0000 |
commit | daeeafd3a50510881ffbc870631b91d5c0a2d662 (patch) | |
tree | ce9821cefa57cc1628a81ed4159affb7c25fe01b /libkcal/icalformatimpl.cpp | |
parent | d4f48636cc2631625434326e146d04f503d0247a (diff) | |
download | tdepim-daeeafd3a50510881ffbc870631b91d5c0a2d662.tar.gz tdepim-daeeafd3a50510881ffbc870631b91d5c0a2d662.zip |
Fixed FTBFS with libical >= 0.46
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1174005 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/icalformatimpl.cpp')
-rw-r--r-- | libkcal/icalformatimpl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libkcal/icalformatimpl.cpp b/libkcal/icalformatimpl.cpp index 613d492e9..d711dd1ac 100644 --- a/libkcal/icalformatimpl.cpp +++ b/libkcal/icalformatimpl.cpp @@ -42,6 +42,8 @@ extern "C" { #include "icalformatimpl.h" #include "compat.h" +#include "config.h" + #define _ICAL_VERSION "2.0" using namespace KCal; @@ -666,7 +668,11 @@ icalproperty *ICalFormatImpl::writeAttachment( Attachment *att ) if ( att->isUri() ) { attach = icalattach_new_from_url( att->uri().utf8().data() ); } else { +#ifdef USE_LIBICAL_0_46 + attach = icalattach_new_from_data ( (const char *)att->data(), 0, 0 ); +#else attach = icalattach_new_from_data ( (unsigned char *)att->data(), 0, 0 ); +#endif } icalproperty *p = icalproperty_new_attach( attach ); |