Merge pull request #25 from ilgk/cpp

quirc.h : Fix C++ function name mangling with extern C.
This commit is contained in:
Daniel Beer 2017-02-17 09:59:33 +13:00 committed by GitHub
commit 9a299fad73

View file

@ -19,6 +19,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
struct quirc;
/* Obtain the library version string. */
@ -162,4 +166,8 @@ void quirc_extract(const struct quirc *q, int index,
quirc_decode_error_t quirc_decode(const struct quirc_code *code,
struct quirc_data *data);
#ifdef __cplusplus
}
#endif
#endif