Compiling with gcc 4.9 sometimes requires cstddef

It's the generated swig code that is missing cstddef.  Added some
includes to get cstdef in the swig code.

refs #212
This commit is contained in:
Alex Lin 2016-04-01 17:05:24 -05:00
parent b1a69f2490
commit b5b6dbe0bb
3 changed files with 10 additions and 0 deletions

View File

@ -322,6 +322,11 @@ sub process_file() {
print OUT "#include \"trick/swig/trick_swig.i\"\n\n" ;
print OUT "
\%insert(\"begin\") \%{
#include <Python.h>
#include <cstddef>
\%}
\%{
#include \"$f\"
\%}\n" ;

View File

@ -49,6 +49,7 @@ PURPOSE:
#include <new>
#include <iostream>
#include <stdlib.h>
#include <cstddef>
#include \"trick/attributes.h\"
#include \"trick/populate_attribute_maps.hh\"

View File

@ -1,6 +1,10 @@
%module sim_services
%{
#include <cstddef>
%}
#include "trick/swig/trick_swig.i"
#include "trick/swig/units_attach.i"
#include "trick/swig/extra_functions.i"