fix testsuite problems

This commit is contained in:
josch
2014-11-05 13:21:51 +01:00
parent f281b4233d
commit 254aaa6033
3 changed files with 10 additions and 6 deletions

View File

@@ -13,8 +13,12 @@ case $# in
;;
esac
find "$source_dir" -name "*.c" -o -name "*.h" \! -path "$source_dir/3rdparty/*" | while read f; do
source_dir=`readlink -f "$source_dir"`
find "$source_dir" -name "*.c" -o -name "*.h" | while read f; do
case $f in
${source_dir}/3rdparty/*)
;;
${source_dir}/*/CMakeFiles/*)
;;
${source_dir}/CMakeFiles/*)

View File

@@ -20,10 +20,10 @@
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#undef _POSIX_SOURCE
#include "../3rdparty/xdelta3-3.0.8/xdelta3.h"
#include "../3rdparty/xdelta3-3.0.8/xdelta3.c"
#include "../3rdparty/xdelta3-3.0.8/xdelta3-decode.h"
//---------------------------------------------------------------------------
static int code(int encode, FILE * InFile, FILE * SrcFile, FILE * OutFile,
@@ -104,12 +104,12 @@ static int code(int encode, FILE * InFile, FILE * SrcFile, FILE * OutFile,
return 0;
}
int xdelta3_diff(FILE *old, FILE *new, FILE *diff)
int xdelta3_diff(FILE * old, FILE * new, FILE * diff)
{
return code(1, new, old, diff, 0x1000);
}
int xdelta3_patch(FILE *old, FILE *diff, FILE *new)
int xdelta3_patch(FILE * old, FILE * diff, FILE * new)
{
return code(0, diff, old, new, 0x1000);
}

View File

@@ -21,7 +21,7 @@
#include <stdio.h>
int xdelta3_diff(FILE *old, FILE *new, FILE *diff);
int xdelta3_patch(FILE *old, FILE *diff, FILE *new);
int xdelta3_diff(FILE * old, FILE * new, FILE * diff);
int xdelta3_patch(FILE * old, FILE * diff, FILE * new);
#endif