[Lldb-commits] [lldb] r168901 - /lldb/trunk/scripts/Python/python-wrapper.swig
Daniel Malea
daniel.malea at intel.com
Thu Nov 29 08:38:45 PST 2012
Author: dmalea
Date: Thu Nov 29 10:38:44 2012
New Revision: 168901
URL: http://llvm.org/viewvc/llvm-project?rev=168901&view=rev
Log:
Match extern "C" in declaration and definition (swig template)
- Fix for building with gcc 4.6
Modified:
lldb/trunk/scripts/Python/python-wrapper.swig
Modified: lldb/trunk/scripts/Python/python-wrapper.swig
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/python-wrapper.swig?rev=168901&r1=168900&r2=168901&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/python-wrapper.swig (original)
+++ lldb/trunk/scripts/Python/python-wrapper.swig Thu Nov 29 10:38:44 2012
@@ -964,6 +964,10 @@
#include "lldb/API/SBInputReader.h"
#include "lldb/API/SBDebugger.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
size_t
LLDBSwigPythonCallSBInputReaderCallback(void *baton,
lldb::SBInputReader *reader,
@@ -972,6 +976,10 @@
size_t bytes_len);
void LLDBSwigPythonCallPythonLogOutputCallback(const char *str, void *baton);
+
+#ifdef __cplusplus
+}
+#endif
%}
%wrapper %{
More information about the lldb-commits
mailing list