iw5-mod/deps/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c

36 lines
908 B
C

// hpatch.c
// Created by sisong on 2019-12-30.
#include "hpatch.h"
#ifndef _IS_USED_MULTITHREAD
#define _IS_USED_MULTITHREAD 0
#endif
#define _IS_NEED_DIR_DIFF_PATCH 0
#define _IS_NEED_MAIN 0
#define _IS_NEED_CMDLINE 0
#define _IS_NEED_SFX 0
#define _IS_NEED_ALL_CompressPlugin 0
#include "../../hpatchz.c"
#ifdef _CompressPlugin_bz2
# ifdef BZ_NO_STDIO
#ifdef __cplusplus
extern "C" {
#endif
void bz_internal_error(int errcode){
fprintf(stderr,"\n\nbzip2 v%s: internal error number %d.\n",
BZ2_bzlibVersion(),errcode);
exit(3);
}
#ifdef __cplusplus
}
#endif
# endif
#endif
int hpatchz(const char *oldFileName,const char *diffFileName,
const char *outNewFileName, size_t cacheMemory){
return hpatch(oldFileName,diffFileName,outNewFileName,
hpatch_FALSE,cacheMemory,0,0,1);
}