# New Ticket Created by  "Senaka Fernando" 
# Please include the string:  [perl #52916]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=52916 >


Index: src/nci_test.c
===================================================================
--- src/nci_test.c      (revision 26966)
+++ src/nci_test.c      (working copy)
@@ -37,6 +37,12 @@
 #include <stdlib.h>
 #include <parrot/config.h>
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+
 /* Declarations of structs */
 
 typedef struct Nested {
@@ -1070,6 +1076,10 @@
 
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 /*
 
 =back
Hi all,

The provided patch makes the NCI test C++ compatible.

Regards,
Senaka

Reply via email to