[Spice-devel] [PATCH 2/2] add C++ guards to backtrace.h

Christophe Fergeau cfergeau at redhat.com
Tue Aug 9 10:09:38 PDT 2011


Without these, spice_backtrace() can't be used from the C++ client
code.
---
 common/backtrace.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/common/backtrace.h b/common/backtrace.h
index 21b6b67..8fcbb78 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
-- 
1.7.6



More information about the Spice-devel mailing list