You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/08/07 09:10:23 UTC

svn commit: r563409 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubHeaderTemplate.xsl

Author: samisa
Date: Tue Aug  7 00:10:23 2007
New Revision: 563409

URL: http://svn.apache.org/viewvc?view=rev&rev=563409
Log:
Fixed the header file problem that prevented compiling with C++. AXIS2C-658

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubHeaderTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubHeaderTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubHeaderTemplate.xsl?view=diff&rev=563409&r1=563408&r2=563409
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubHeaderTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubHeaderTemplate.xsl Tue Aug  7 00:10:23 2007
@@ -34,6 +34,11 @@
          #include "<xsl:value-of select="$inputtype"/>.h"
         </xsl:for-each>
        </xsl:for-each>
+
+	#ifdef __cplusplus
+	extern "C" {
+	#endif
+
         /* function prototypes - for header file*/
         /**
          * <xsl:value-of select="$method-prefix"/>_create
@@ -113,5 +118,9 @@
         </xsl:if>  <!--close for  test="$mep='http://www.w3.org/2004/08/wsdl/in-out'"-->
         </xsl:for-each>
         </xsl:if>  <!--close for  test="$isAsync='1'-->
+
+	#ifdef __cplusplus
+	}
+	#endif
    </xsl:template>
 </xsl:stylesheet>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org