summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-08-08 11:24:03 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-09-01 03:58:01 +0200
commit6a718d9b0da0bbd0d90beefcd661039a474a4719 (patch)
tree6b358b77a27827ae872d80d5576deb43777734a0 /common
parent41174221fbafb10abfe87f4e0120be7d9666fa4b (diff)
downloadspice-6a718d9b0da0bbd0d90beefcd661039a474a4719.tar.gz
spice-6a718d9b0da0bbd0d90beefcd661039a474a4719.tar.xz
spice-6a718d9b0da0bbd0d90beefcd661039a474a4719.zip
add C++ guards to backtrace.h
Without these, spice_backtrace() can't be used from the C++ client code.
Diffstat (limited to 'common')
-rw-r--r--common/backtrace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/backtrace.h b/common/backtrace.h
index 21b6b67f..8fcbb782 100644
--- a/common/backtrace.h
+++ b/common/backtrace.h
@@ -19,10 +19,16 @@
#ifndef BACKTRACE_H
#define BACKTRACE_H
+#include <spice/macros.h>
+
+SPICE_BEGIN_DECLS
+
#ifdef WIN32
#define spice_backtrace()
#else
void spice_backtrace(void);
#endif
+SPICE_END_DECLS
+
#endif // BACKTRACE_H