reversing logic for library/executable compilation
authorMatthew Endsley <mendsley@gmail.com>
Mon, 14 May 2012 02:10:39 +0000 (19:10 -0700)
committerMatthew Endsley <mendsley@gmail.com>
Mon, 14 May 2012 08:04:25 +0000 (01:04 -0700)
bsdiff.c
bspatch.c

index 7bfd0eb..a44f976 100644 (file)
--- 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>
 
index 869fd10..1ba087c 100644 (file)
--- 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>