Skip to content

Cpp compatibility #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
C++ compatibility: Added extern "C" for C++ code.
  • Loading branch information
Emanuel Komínek committed Sep 15, 2018
commit 8bf68dc87cc50f4ee9db4bc2d1efd632b6a2e877
8 changes: 8 additions & 0 deletions bsdiff.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
# include <stddef.h>
# include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

struct bsdiff_stream
{
void* opaque;
Expand All @@ -42,4 +46,8 @@ struct bsdiff_stream

int bsdiff(const uint8_t* old, int64_t oldsize, const uint8_t* new, int64_t newsize, struct bsdiff_stream* stream);

#ifdef __cplusplus
}
#endif

#endif