# HG changeset patch # User Pascal Bellard # Date 1246636883 -7200 # Node ID 45c9d6e41e67caf3b4c7b801a50ac3408fd73039 # Parent c40143c90a5008ed0537f366befe0469d604b95b abiword-plugins: fix compile for gcc44 diff -r c40143c90a50 -r 45c9d6e41e67 abiword-plugins/receipt --- a/abiword-plugins/receipt Fri Jul 03 17:43:52 2009 +0200 +++ b/abiword-plugins/receipt Fri Jul 03 18:01:23 2009 +0200 @@ -16,6 +16,14 @@ compile_rules() { cd $src + while read file; do + [ -f done.$file ] && continue + echo "Apply $file..." + patch -p1 < ../stuff/$file || return 1 + touch done.$file + done <(static_cast < const UT_UTF8String * >(pToks->getNthItem (1))); + printf(" Filename %s \n",pCom1->utf8_str()); +- char *suffix = rindex (pCom1->utf8_str (), '.'); ++ const char *suffix = rindex (pCom1->utf8_str (), '.'); + + if (suffix != NULL) + {