Match extern "C" in declaration and definition (swig template)

- Fix for building with gcc 4.6

llvm-svn: 168901
This commit is contained in:
Daniel Malea 2012-11-29 16:38:44 +00:00
parent c12edd4e68
commit c9449ad631
1 changed files with 8 additions and 0 deletions

View File

@ -964,6 +964,10 @@ LLDBSwigPythonCallModuleInit
#include "lldb/API/SBInputReader.h" #include "lldb/API/SBInputReader.h"
#include "lldb/API/SBDebugger.h" #include "lldb/API/SBDebugger.h"
#ifdef __cplusplus
extern "C" {
#endif
size_t size_t
LLDBSwigPythonCallSBInputReaderCallback(void *baton, LLDBSwigPythonCallSBInputReaderCallback(void *baton,
lldb::SBInputReader *reader, lldb::SBInputReader *reader,
@ -972,6 +976,10 @@ LLDBSwigPythonCallSBInputReaderCallback(void *baton,
size_t bytes_len); size_t bytes_len);
void LLDBSwigPythonCallPythonLogOutputCallback(const char *str, void *baton); void LLDBSwigPythonCallPythonLogOutputCallback(const char *str, void *baton);
#ifdef __cplusplus
}
#endif
%} %}
%wrapper %{ %wrapper %{