[Lldb-commits] [PATCH] linux: fix include in lldb.swig

Stephen Wilson wilsons at start.ca
Wed Dec 15 12:28:35 PST 2010

I would appreciate it if someone with experience in Swig could look this
one over.  I am not 100% positive this is the proper fix.

    Use #include rather than the Swig %include directive.
    In order to use the %include directive Swig needs to be instructed as to the
    search path.  However, Swig 1.3.40 cannot process stdint.h provided by glibc.
    This fix takes advantage of the fact that, by default, Swig does not process
    headers introduced via #include.

diff --git a/scripts/lldb.swig b/scripts/lldb.swig
index 95c409e..63167c8 100644
--- a/scripts/lldb.swig
+++ b/scripts/lldb.swig
@@ -97,7 +97,7 @@
 /* Various liblldb typedefs that SWIG needs to know about.  */
-%include <stdint.h>
+#include <stdint.h>
 %include "lldb/lldb-defines.h"
 %include "lldb/lldb-enumerations.h"
 %include "lldb/lldb-forward.h"

More information about the lldb-commits mailing list