Move <string.h> fragment to swigfragments

This commit is contained in:
Seth R Johnson 2018-03-23 15:04:00 -04:00
commit c041ac6d1c
6 changed files with 14 additions and 6 deletions

View file

@ -4,6 +4,8 @@
* SWIG library file containing macros for manipulating raw C data as strings.
* ----------------------------------------------------------------------------- */
%include <swigfragments.swg>
%{
typedef struct SWIGCDATA {
char *data;

View file

@ -442,10 +442,6 @@ namespace std {
* Default char * and C array typemaps
* ----------------------------------------------------------------------------- */
%fragment("<string.h>", "runtime") %{
#include <string.h>
%}
/* Set up the typemap for handling new return strings */
#ifdef __cplusplus

View file

@ -29,6 +29,10 @@
#include <math.h>
%}
%fragment("<string.h>", "header") %{
#include <string.h>
%}
%fragment("<stddef.h>", "header") %{
#include <stddef.h>
%}