Fix external issue

This patch move the "LLDBVersionNumber" forward declaration outside the method body and explicitly declare it as extern "C" to make sure the compiler properly mangle the symbol reference.

This is required to be able to compile LLDB using a conformed C++ compiler:

http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-July/009794.html

With this patch, LLBD can be compiled out of the box with clang++ :slight_smile:

extern.patch (504 Bytes)

Looks great, applied as r107765.