Skip to content

Commit 86e49ef

Browse files
committed
Include what you use
1 parent 14b856c commit 86e49ef

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Examples/test-suite/kwargs_feature.i

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ struct ExtendingOptArgs1 {};
128128
struct ExtendingOptArgs2 {};
129129
%}
130130

131+
// For strlen/strcpy
132+
%{
133+
#include <string.h>
134+
%}
135+
131136
// Varargs
132137
%warnfilter(SWIGWARN_LANG_VARARGS_KEYWORD) VarargConstructor::VarargConstructor; // Can't wrap varargs with keyword arguments enabled
133138
%warnfilter(SWIGWARN_LANG_VARARGS_KEYWORD) VarargConstructor::vararg_method; // Can't wrap varargs with keyword arguments enabled

Examples/test-suite/typemap_various.i

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ void CheckRetTypemapUsed() {
5858
/* hello */ delete[] result;
5959
}
6060

61+
%{
62+
#include <string.h>
63+
%}
64+
6165
%inline {
6266
class FFoo {
6367
public:

0 commit comments

Comments
 (0)