lib: use cplusplus-friendly headers

parent c3b149d2
...@@ -11,6 +11,14 @@ ...@@ -11,6 +11,14 @@
*/ */
#ifndef __FDELAY_H__ #ifndef __FDELAY_H__
#define __FDELAY_H__ #define __FDELAY_H__
/**
* Most of the client are written in C++
*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include <stdint.h> #include <stdint.h>
#include <fine-delay.h> #include <fine-delay.h>
...@@ -165,8 +173,10 @@ static inline int __fdelay_command(struct __fdelay_board *b, uint32_t cmd) ...@@ -165,8 +173,10 @@ static inline int __fdelay_command(struct __fdelay_board *b, uint32_t cmd)
{ {
return fdelay_sysfs_set(b, "command", &cmd); return fdelay_sysfs_set(b, "command", &cmd);
} }
#endif /* FDELAY_INTERNAL */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* FDELAY_INTERNAL */
#endif /* __FDELAY_H__ */ #endif /* __FDELAY_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment