summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Endsley <mendsley@gmail.com>2012-05-13 19:10:39 -0700
committerMatthew Endsley <mendsley@gmail.com>2012-05-14 01:04:25 -0700
commitfbbf9203da2cc24af228276cbca3fbdceca2c906 (patch)
treed6a0591975a2cdff8a623e693fcae8c69780f4f9
parent1c8b497c9a3015c68fad915d88cb6a1b9bcdcc81 (diff)
downloadbsdiff-fbbf9203da2cc24af228276cbca3fbdceca2c906.tar.gz
reversing logic for library/executable compilation
-rw-r--r--bsdiff.c2
-rw-r--r--bspatch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bsdiff.c b/bsdiff.c
index 7bfd0eb..a44f976 100644
--- a/bsdiff.c
+++ b/bsdiff.c
@@ -431,7 +431,7 @@ int bsdiff(const uint8_t* old, int64_t oldsize, const uint8_t* new, int64_t news
return result;
}
-#if !defined(BSDIFF_LIBRARY)
+#if defined(BSDIFF_EXECUTABLE)
#include <sys/types.h>
diff --git a/bspatch.c b/bspatch.c
index 869fd10..1ba087c 100644
--- a/bspatch.c
+++ b/bspatch.c
@@ -121,7 +121,7 @@ int bspatch(const struct bspatch_request req)
return 0;
}
-#if !defined(BSPATCH_LIBRARY)
+#if defined(BSPATCH_EXECUTABLE)
#include <bzlib.h>
#include <stdlib.h>