Add missing #include <stddef.h> for offsetof when using -builtin.
Fixes SF #1345 Conflicts: CHANGES.current
This commit is contained in:
parent
c2f5813ffa
commit
5602a61bb6
2 changed files with 7 additions and 0 deletions
|
|
@ -4,6 +4,10 @@
|
|||
|
||||
%insert(init) "swiginit.swg"
|
||||
|
||||
#if defined(SWIGPYTHON_BUILTIN)
|
||||
%fragment("<stddef.h>"); // For offsetof
|
||||
#endif
|
||||
|
||||
%init %{
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue