From b11f4d8e62c4e668b672a72188e8d0d1a3d691a7 Mon Sep 17 00:00:00 2001 From: Simon Marchetto Date: Wed, 14 Jan 2015 15:43:46 +0100 Subject: [PATCH] reduce slightly the gateway source --- Source/Modules/scilab.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Modules/scilab.cxx b/Source/Modules/scilab.cxx index 056b6be16..52b7e0a7a 100644 --- a/Source/Modules/scilab.cxx +++ b/Source/Modules/scilab.cxx @@ -1008,11 +1008,8 @@ public: gatewayHeaderV6 = NewString(""); Printf(gatewayHeaderV6, "#include \"c_gateway_prototype.h\"\n"); - Printf(gatewayHeaderV6, "#ifdef __cplusplus\n"); - Printf(gatewayHeaderV6, "extern \"C\" {\n"); Printf(gatewayHeaderV6, "#include \"addfunction.h\"\n"); - Printf(gatewayHeaderV6, "}\n"); - Printf(gatewayHeaderV6, "#endif\n"); + Printf(gatewayHeaderV6, "\n"); Printf(gatewayHeaderV6, "#define MODULE_NAME L\"%s\"\n", gatewayLibraryName); Printf(gatewayHeaderV6, "#ifdef __cplusplus\n"); Printf(gatewayHeaderV6, "extern \"C\"\n");