Merge pull request #25 from ilgk/cpp
quirc.h : Fix C++ function name mangling with extern C.
This commit is contained in:
commit
9a299fad73
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,10 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct quirc;
|
struct quirc;
|
||||||
|
|
||||||
/* Obtain the library version string. */
|
/* 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,
|
quirc_decode_error_t quirc_decode(const struct quirc_code *code,
|
||||||
struct quirc_data *data);
|
struct quirc_data *data);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue