| 1 |
%{ |
| 2 |
/** |
| 3 |
* This is a workaround for a minor swig bug when building on gcc 4.6.1 and above. |
| 4 |
* Prior to gcc 4.6.1 the STL headers like vector, string, etc. used to |
| 5 |
* automatically pull in the cstddef header but starting with gcc 4.6.1 they no |
| 6 |
* longer do. This leads to swig generated a file that does not compile so we |
| 7 |
* explicitly include cstddef so the swig generated file will compile. |
| 8 |
*/ |
| 9 |
#include <cstddef> |
| 10 |
%} |
| 11 |
|
| 12 |
%module(directors="1") librocket |
| 13 |
$imports |
| 14 |
|
| 15 |
%include "std_string.i" |
| 16 |
|
| 17 |
/* Signed. */ |
| 18 |
typedef signed char int8_t; |
| 19 |
typedef short int int16_t; |
| 20 |
typedef int int32_t; |
| 21 |
#if defined(SWIGWORDSIZE64) |
| 22 |
typedef long int int64_t; |
| 23 |
#else |
| 24 |
typedef long long int int64_t; |
| 25 |
#endif |
| 26 |
|
| 27 |
/* Unsigned. */ |
| 28 |
typedef unsigned char uint8_t; |
| 29 |
typedef unsigned short int uint16_t; |
| 30 |
typedef unsigned int uint32_t; |
| 31 |
#if defined(SWIGWORDSIZE64) |
| 32 |
typedef unsigned long int uint64_t; |
| 33 |
#else |
| 34 |
typedef unsigned long long int uint64_t; |
| 35 |
#endif |
| 36 |
|
| 37 |
$inclusions |
| 38 |
|