adding BSPATCH_HEADER_ONLY to exclude non-declarations
authorMatthew Endsley <mendsley@gmail.com>
Mon, 14 May 2012 00:34:16 +0000 (17:34 -0700)
committerMatthew Endsley <mendsley@gmail.com>
Mon, 14 May 2012 08:04:25 +0000 (01:04 -0700)
bspatch.c

index e4d16cb..ddc24b4 100644 (file)
--- a/bspatch.c
+++ b/bspatch.c
@@ -47,6 +47,8 @@ struct bspatch_request
        struct bspatch_stream extra;
 };
 
+#if !defined(BSPATCH_HEADER_ONLY)
+
 static int64_t offtin(uint8_t *buf)
 {
        int64_t y;
@@ -293,3 +295,4 @@ int main(int argc,char * argv[])
 }
 
 #endif
+#endif