From: Daniel Malea Date: Thu, 29 Nov 2012 16:38:44 +0000 (+0000) Subject: Match extern "C" in declaration and definition (swig template) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9449ad631d49217d5c2555bbca2731c7682a809;p=platform%2Fupstream%2Fllvm.git Match extern "C" in declaration and definition (swig template) - Fix for building with gcc 4.6 llvm-svn: 168901 --- diff --git a/lldb/scripts/Python/python-wrapper.swig b/lldb/scripts/Python/python-wrapper.swig index 199cc63..283d911 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 %{