Commit 4d82febf17ce7131ae413ae3fbd0ab4864cf3820

Authored by Jürgen Knödlseder
1 parent 9820edef

Include #include <stddef.h> which is needed for older swig versions (e.g. 1.3.40).

Showing 1 changed file with 6 additions and 1 deletions
pyext/ctools.i
1 /*************************************************************************** 1 /***************************************************************************
2 * ctools - SWIG file * 2 * ctools - SWIG file *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -29,6 +29,11 @@ @@ -29,6 +29,11 @@
29 %module ctools 29 %module ctools
30 %feature("autodoc", "1"); 30 %feature("autodoc", "1");
31 31
  32 +/* __ Headers needed for compilation _____________________________________ */
  33 +%{
  34 +#include <stddef.h>
  35 +%}
  36 +
32 /* __ Include standard typemaps for vectors and strings __________________ */ 37 /* __ Include standard typemaps for vectors and strings __________________ */
33 %include stl.i 38 %include stl.i
34 39