Permalink
Browse files

Added extern C wrapper for threading commands. Should fix linking iss…

…ues.
  • Loading branch information...
bmcdorman committed Feb 16, 2013
1 parent 9486489 commit 8aa4fd58eb1f466b892ff44d609c1e395739b4b5
Showing with 8 additions and 0 deletions.
  1. +8 −0 include/kovan/thread.h
View
@@ -3,6 +3,10 @@
#include "export.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct
{
void *data;
@@ -26,4 +30,8 @@ EXPORT_SYM void thread_start(thread id);
EXPORT_SYM void thread_wait(thread id);
EXPORT_SYM void thread_destroy(thread id);
+#ifdef __cplusplus
+}
+#endif
+
#endif

0 comments on commit 8aa4fd5

Please sign in to comment.