Add C++ compatibility, this fix Issue 16.
This commit is contained in:
parent
aaf2a2d4dd
commit
5a7c561d48
1 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,10 @@
|
|||
#include "defines.h"
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define NFCAPI extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
/**
|
||||
* @fn dev_info* nfc_connect(nfc_device_desc_t* pndd)
|
||||
* @brief Connect to a NFC device
|
||||
|
@ -231,5 +235,10 @@ bool nfc_target_send_bytes(const dev_info* pdi, const byte_t* pbtTx, const size_
|
|||
*/
|
||||
bool nfc_target_send_dep_bytes(const dev_info* pdi, const byte_t* pbtTx, const size_t szTxLen);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif // __cplusplus
|
||||
|
||||
|
||||
#endif // _LIBNFC_H_
|
||||
|
||||
|
|
Loading…
Reference in a new issue