summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/python-wrapper.swig
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2012-11-29 16:38:44 +0000
committerDaniel Malea <daniel.malea@intel.com>2012-11-29 16:38:44 +0000
commitc9449ad631d49217d5c2555bbca2731c7682a809 (patch)
tree42455b613b998ade230d388b92eafb623d382d03 /lldb/scripts/Python/python-wrapper.swig
parentc12edd4e68994065469eeec742ddb12260f3d9be (diff)
downloadbcm5719-llvm-c9449ad631d49217d5c2555bbca2731c7682a809.tar.gz
bcm5719-llvm-c9449ad631d49217d5c2555bbca2731c7682a809.zip
Match extern "C" in declaration and definition (swig template)
- Fix for building with gcc 4.6 llvm-svn: 168901
Diffstat (limited to 'lldb/scripts/Python/python-wrapper.swig')
-rw-r--r--lldb/scripts/Python/python-wrapper.swig8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/scripts/Python/python-wrapper.swig b/lldb/scripts/Python/python-wrapper.swig
index 199cc639cb2..283d9119248 100644
--- a/lldb/scripts/Python/python-wrapper.swig
+++ b/lldb/scripts/Python/python-wrapper.swig
@@ -964,6 +964,10 @@ LLDBSwigPythonCallModuleInit
#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 @@ LLDBSwigPythonCallSBInputReaderCallback(void *baton,
size_t bytes_len);
void LLDBSwigPythonCallPythonLogOutputCallback(const char *str, void *baton);
+
+#ifdef __cplusplus
+}
+#endif
%}
%wrapper %{
OpenPOWER on IntegriCloud