Add missing #include <stddef.h> for offsetof when using -builtin.

Fixes SF #1345
This commit is contained in:
William S Fulton 2013-10-17 19:56:18 +01:00
commit 0e54a51c10
2 changed files with 7 additions and 0 deletions

View file

@ -4,6 +4,10 @@
%insert(init) "swiginit.swg"
#if defined(SWIGPYTHON_BUILTIN)
%fragment("<stddef.h>"); // For offsetof
#endif
%init %{
#ifdef __cplusplus