[PATCH 090/111] TLIB: fix build warnings
Daniel Hellstrom
daniel at gaisler.com
Thu Feb 26 16:39:32 UTC 2015
---
c/src/lib/libbsp/sparc/shared/include/tlib.h | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/shared/include/tlib.h b/c/src/lib/libbsp/sparc/shared/include/tlib.h
index df9466e..ea43951 100644
--- a/c/src/lib/libbsp/sparc/shared/include/tlib.h
+++ b/c/src/lib/libbsp/sparc/shared/include/tlib.h
@@ -16,6 +16,13 @@
* http://www.rtems.com/license/LICENSE.
*/
+#ifndef __TLIB_H__
+#define __TLIB_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct tlib_dev;
typedef void (*tlib_isr_t)(void *data);
@@ -175,3 +182,9 @@ static inline int tlib_interrupt_pending(void *hand, int ack)
return dev->drv->int_pend(dev, ack);
}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
--
1.7.0.4
More information about the devel
mailing list