You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/05/19 16:51:21 UTC
[09/18] incubator-mynewt-core git commit: coredump;
add C++ protection around the API.
coredump; add C++ protection around the API.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/807955e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/807955e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/807955e6
Branch: refs/heads/develop
Commit: 807955e691fbe10182582939f348d0a4888cc6f1
Parents: e87c89d
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Tue May 17 20:36:00 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu May 19 09:35:45 2016 -0700
----------------------------------------------------------------------
sys/coredump/include/coredump/coredump.h | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/807955e6/sys/coredump/include/coredump/coredump.h
----------------------------------------------------------------------
diff --git a/sys/coredump/include/coredump/coredump.h b/sys/coredump/include/coredump/coredump.h
index 1cf8b9b..e3eeadd 100644
--- a/sys/coredump/include/coredump/coredump.h
+++ b/sys/coredump/include/coredump/coredump.h
@@ -20,6 +20,10 @@
#ifndef __COREDUMP_H__
#define __COREDUMP_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <inttypes.h>
#define COREDUMP_MAGIC 0x690c47c3
@@ -48,4 +52,8 @@ struct coredump_header {
void dump_core(void *regs, int regs_sz);
+#ifdef __cplusplus
+}
+#endif
+
#endif