Match extern "C" in declaration and definition (swig template)
- Fix for building with gcc 4.6



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@168901 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/python-wrapper.swig b/scripts/Python/python-wrapper.swig
index 199cc63..283d911 100644
--- a/scripts/Python/python-wrapper.swig
+++ b/scripts/Python/python-wrapper.swig
@@ -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 %{