You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/04/12 07:23:08 UTC

cvs commit: xml-xalan/c/samples/ExternalFunction ExternalFunction.cpp

dbertoni    02/04/11 22:23:08

  Modified:    c/samples/ExternalFunction ExternalFunction.cpp
  Log:
  Cleanup for picky compilers.
  
  Revision  Changes    Path
  1.21      +16 -0     xml-xalan/c/samples/ExternalFunction/ExternalFunction.cpp
  
  Index: ExternalFunction.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/samples/ExternalFunction/ExternalFunction.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ExternalFunction.cpp	28 Feb 2002 06:10:53 -0000	1.20
  +++ ExternalFunction.cpp	12 Apr 2002 05:23:08 -0000	1.21
  @@ -51,6 +51,10 @@
   	{
   		assert(arg.null() == false);	
   
  +#if defined(XALAN_STRICT_ANSI_HEADERS)
  +		using std::sqrt;
  +#endif
  +
   		return executionContext.getXObjectFactory().createNumber(sqrt(arg->num()));
   	}
   
  @@ -114,6 +118,10 @@
   	{
   		assert(arg.null() == false);
   
  +#if defined(XALAN_STRICT_ANSI_HEADERS)
  +		using std::pow;
  +#endif
  +
   		return executionContext.getXObjectFactory().createNumber(pow(arg->num(), 3));
   	}
   
  @@ -174,6 +182,14 @@
   			XalanNode*				/* context */,
   			const Locator*			/* locator */) const
   	{
  +#if defined(XALAN_STRICT_ANSI_HEADERS)
  +		using std::time;
  +		using std::time_t;
  +		using std::localtime;
  +		using std::ascitime;
  +		using std::strlen;
  +#endif
  +
   		time_t	theTime;
   
   		time(&theTime);
  
  
  

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