add C++ guards to backtrace.h

Without these, spice_backtrace() can't be used from the C++ client
code.
This commit is contained in:
Christophe Fergeau 2011-08-08 11:24:03 +02:00
parent 41174221fb
commit 6a718d9b0d

View File

@ -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