Move <string.h> fragment to swigfragments
This commit is contained in:
parent
feeb2516ae
commit
c041ac6d1c
6 changed files with 14 additions and 6 deletions
|
|
@ -4,6 +4,8 @@
|
|||
* SWIG library file containing macros for manipulating raw C data as strings.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
%include <swigfragments.swg>
|
||||
|
||||
%{
|
||||
typedef struct SWIGCDATA {
|
||||
char *data;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@
|
|||
#include <math.h>
|
||||
%}
|
||||
|
||||
%fragment("<string.h>", "header") %{
|
||||
#include <string.h>
|
||||
%}
|
||||
|
||||
%fragment("<stddef.h>", "header") %{
|
||||
#include <stddef.h>
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue