diff options
author | Matthew Endsley <mendsley@gmail.com> | 2012-05-12 03:07:28 -0700 |
---|---|---|
committer | Matthew Endsley <mendsley@gmail.com> | 2012-05-14 01:04:24 -0700 |
commit | 66b6e9e4bfa26206622c050ad4e4c5776e40a8a9 (patch) | |
tree | 73ca420903d415a775b3feab374816edea15f0de | |
parent | 1a9de1dbcfcdf740ff722e55fec79cce0023f42e (diff) | |
download | bsdiff-66b6e9e4bfa26206622c050ad4e4c5776e40a8a9.tar.gz |
adding BSDIFF_HEADER_ONLY to compile out implementation
-rw-r--r-- | bsdiff.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -29,8 +29,6 @@ __FBSDID("$FreeBSD: src/usr.bin/bsdiff/bsdiff/bsdiff.c,v 1.1 2005/08/06 01:59:05 #endif #include <stdint.h> -#include <stdlib.h> -#include <string.h> struct bsdiff_header { @@ -50,6 +48,11 @@ struct bsdiff_compressor int (*finish)(struct bsdiff_compressor* compressor); }; +#if !defined(BSDIFF_HEADER_ONLY) + +#include <stdlib.h> +#include <string.h> + #define MIN(x,y) (((x)<(y)) ? (x) : (y)) static void split(int64_t *I,int64_t *V,int64_t start,int64_t len,int64_t h) @@ -554,4 +557,6 @@ int main(int argc,char *argv[]) return 0; } -#endif +#endif //BSDIFF_LIBRARY + +#endif // BSDIFF_HEADER_ONLY |