Skip to content

Commit 13386c9

Browse files
committed
Add missing prototype in xsbuild test.
The plus1 function needs a prototype under C as well as C++. Otherwise any decent compiler will throw a warning.
1 parent 0a9948f commit 13386c9

File tree

1 file changed

+5
-1
lines changed
  • t/lib/MakeMaker/Test/Setup

1 file changed

+5
-1
lines changed

t/lib/MakeMaker/Test/Setup/XS.pm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,11 @@ $label2files{xsbuild} = +{
263263

264264
'lib/XS/Other.xs' => <<EOF,
265265
#ifdef __cplusplus
266-
extern "C" { int plus1(int); }
266+
extern "C" {
267+
#endif
268+
int plus1(int);
269+
#ifdef __cplusplus
270+
}
267271
#endif
268272
$XS_OTHER
269273
int

0 commit comments

Comments
 (0)