From ef92fc6a7bef8da6cd6d4a08e56829b7a5791f98 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 6 Apr 2011 21:42:47 +0000 Subject: [PATCH] add C++ compatibility in include/nfc/nfc-emulation.h --- include/nfc/nfc-emulation.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/nfc/nfc-emulation.h b/include/nfc/nfc-emulation.h index e0586e2..ab92d6c 100644 --- a/include/nfc/nfc-emulation.h +++ b/include/nfc/nfc-emulation.h @@ -23,6 +23,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + struct nfc_emulator; struct nfc_emulation_state_machine; @@ -40,4 +44,9 @@ struct nfc_emulation_state_machine { NFC_EXPORT int nfc_emulate_target (nfc_device_t* pnd, struct nfc_emulator *emulator); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + #endif /* __NFC_EMULATION_H__ */