diff options
Diffstat (limited to 'Lib/cpointer.i')
-rw-r--r-- | Lib/cpointer.i | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/cpointer.i b/Lib/cpointer.i index 881c511fc..5eca6fae1 100644 --- a/Lib/cpointer.i +++ b/Lib/cpointer.i @@ -5,6 +5,12 @@ * pointer objects. * ----------------------------------------------------------------------------- */ +#ifndef __cplusplus +// C uses free/calloc/malloc +%include "swigfragments.swg" +%fragment("<stdlib.h>"); +#endif + /* ----------------------------------------------------------------------------- * %pointer_class(type,name) * |