%{ /** * This is a workaround for a minor swig bug when building on gcc 4.6.1 and above. * Prior to gcc 4.6.1 the STL headers like vector, string, etc. used to * automatically pull in the cstddef header but starting with gcc 4.6.1 they no * longer do. This leads to swig generated a file that does not compile so we * explicitly include cstddef so the swig generated file will compile. */ #include %} %module(directors="1") librocket $imports %include "std_string.i" /* Signed. */ typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; #if defined(SWIGWORDSIZE64) typedef long int int64_t; #else typedef long long int int64_t; #endif /* Unsigned. */ typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; #if defined(SWIGWORDSIZE64) typedef unsigned long int uint64_t; #else typedef unsigned long long int uint64_t; #endif $inclusions