diff options
author | Seth R Johnson <johnsonsr@ornl.gov> | 2017-05-09 14:36:14 -0400 |
---|---|---|
committer | Seth R Johnson <johnsonsr@ornl.gov> | 2019-01-06 08:31:11 -0500 |
commit | c1258323b113033988240d3838f0001608163876 (patch) | |
tree | e872c8fa69a5f0ba79346ff09d4b52255ffd1696 /Lib/cpointer.i | |
parent | 0c4491eaae3459c2826b62a869f35ef2ad407970 (diff) | |
download | swig-c1258323b113033988240d3838f0001608163876.tar.gz |
Fix missing include in SWIG typemap
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) * |