dbertoni    2003/11/19 22:44:52

  Modified:    c/Tests/Harness XMLFileReporter.cpp XMLFileReporter.hpp
  Log:
  Changes for strict ANSI headers.
  
  Revision  Changes    Path
  1.23      +8 -0      xml-xalan/c/Tests/Harness/XMLFileReporter.cpp
  
  Index: XMLFileReporter.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Harness/XMLFileReporter.cpp,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- XMLFileReporter.cpp       17 Nov 2003 21:13:09 -0000      1.22
  +++ XMLFileReporter.cpp       20 Nov 2003 06:44:52 -0000      1.23
  @@ -715,6 +715,14 @@
   XalanDOMString 
   XMLFileReporter::getDateTimeString() 
   {
  +#if defined(XALAN_STRICT_ANSI_HEADERS)
  +     using std::tm;
  +     using std::time;
  +     using std::localtime;
  +     using std::asctime;
  +     using std::strlen;
  +#endif
  +
        struct tm *tmNow;
        time_t time_tNow;
   
  
  
  
  1.19      +7 -1      xml-xalan/c/Tests/Harness/XMLFileReporter.hpp
  
  Index: XMLFileReporter.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Harness/XMLFileReporter.hpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- XMLFileReporter.hpp       19 Sep 2003 20:33:03 -0000      1.18
  +++ XMLFileReporter.hpp       20 Nov 2003 06:44:52 -0000      1.19
  @@ -89,6 +89,12 @@
        typedef std::map<XalanDOMString, XalanDOMString>        Hashtable;
   #endif
   
  +#if defined(XALAN_STRICT_ANSI_HEADERS)
  +     typedef std::FILE       FileHandleType;
  +#else
  +     typedef FILE            FileHandleType;
  +#endif
  +
   public:
   
   
  @@ -392,7 +398,7 @@
        XalanDOMString m_fileName;
   
        /** File reference and other internal convenience variables.  */
  -     FILE* m_fileHandle;
  +     FileHandleType* m_fileHandle;
   
        /** If we're ready to start outputting yet.  */
        bool m_ready;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to