You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2006/04/05 01:35:25 UTC
svn commit: r391448 -
/webservices/axis/trunk/c/tests/auto_build/testcases/client/c/CommonClientTestCode.h
Author: nadiramra
Date: Tue Apr 4 16:35:24 2006
New Revision: 391448
URL: http://svn.apache.org/viewcvs?rev=391448&view=rev
Log:
C support fixes/enhancements.
Modified:
webservices/axis/trunk/c/tests/auto_build/testcases/client/c/CommonClientTestCode.h
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/c/CommonClientTestCode.h
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/c/CommonClientTestCode.h?rev=391448&r1=391447&r2=391448&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/c/CommonClientTestCode.h (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/c/CommonClientTestCode.h Tue Apr 4 16:35:24 2006
@@ -1,12 +1,18 @@
#ifndef __COMMONCHEADERFILE
#define __COMMONCHEADERFILE
+/* need to resolve, but we cannot include stdlib.h when running
+ * calculatordoc tests because div() is already defined. So we
+ * hard-code the malloc prototype.
+ */
+
#include <stdio.h>
#define C_BOOL int
#define C_FALSE (int)0
#define C_TRUE (int)1
+extern void *malloc(unsigned int);
char *c_strdup(char *s)
{
char * ret = (char *)malloc(strlen(s)+1);