From 84624e14f805ae5b76cc9384aa5c3d7a185727b4 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 15 Apr 2020 17:15:57 -0400 Subject: [PATCH] bspatch: Add a __cplusplus wrapper in the header so rbutil can use it Change-Id: Iba4e173ec73bfb38144ebb83edf3ed8161d03ebd --- rbutil/bspatch/bspatch.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rbutil/bspatch/bspatch.h b/rbutil/bspatch/bspatch.h index 666b460647..46edd5db0c 100644 --- a/rbutil/bspatch/bspatch.h +++ b/rbutil/bspatch/bspatch.h @@ -5,6 +5,15 @@ #ifndef _BSPATCH_H #define _BSPATCH_H +#ifdef __cplusplus +extern "C" { +#endif + int apply_bspatch(const char *infile, const char *outfile, const char *patchfile); +#ifdef __cplusplus +} +#endif + + #endif /* _BSPATCH_H */