From ed3cbffc2a7a66e1dc04159a2d2e56866fc1d6d3 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 27 Jan 2017 17:07:52 +0000 Subject: [PATCH] cm3/sync.h: Add DECLS to allow use with c++ Reported by vvirag on IRC. Diagnosed and fixed by zyp on IRC --- include/libopencm3/cm3/sync.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libopencm3/cm3/sync.h b/include/libopencm3/cm3/sync.h index 93c12bbd..6937ac63 100644 --- a/include/libopencm3/cm3/sync.h +++ b/include/libopencm3/cm3/sync.h @@ -22,6 +22,8 @@ #include "common.h" +BEGIN_DECLS + void __dmb(void); /* Implements synchronisation primitives as discussed in the ARM document @@ -52,4 +54,6 @@ void mutex_unlock(mutex_t *m); #endif +END_DECLS + #endif