santuario-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blaut...@apache.org
Subject cvs commit: xml-security/c/src/tools/txfmout txfmout.cpp
Date Thu, 20 Feb 2003 10:34:25 GMT
blautenb    2003/02/20 02:34:25

  Modified:    c/src/tools/checksig checksig.cpp
               c/src/tools/txfmout txfmout.cpp
  Log:
  Check for unistd.h
  
  Revision  Changes    Path
  1.7       +13 -2     xml-security/c/src/tools/checksig/checksig.cpp
  
  Index: checksig.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/tools/checksig/checksig.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- checksig.cpp	18 Feb 2003 11:28:12 -0000	1.6
  +++ checksig.cpp	20 Feb 2003 10:34:24 -0000	1.7
  @@ -67,6 +67,9 @@
    * $Id$
    *
    * $Log$
  + * Revision 1.7  2003/02/20 10:34:24  blautenb
  + * Check for unistd.h
  + *
    * Revision 1.6  2003/02/18 11:28:12  blautenb
    * Catch and clean up after Xalan exceptions
    *
  @@ -105,7 +108,15 @@
   #include <string.h>
   #include <iostream.h>
   #include <stdlib.h>
  -#include <direct.h>
  +
  +#if defined(HAVE_UNISTD_H)
  +# include <unistd.h>
  +# define _MAX_PATH NAME_MAX
  +#else
  +# if defined(HAVE_DIRECT_H)
  +#  include <direct.h>
  +# endif
  +#endif
   
   #if defined (_DEBUG) && defined (_MSC_VER)
   #include <crtdbg.h>
  
  
  
  1.4       +15 -3     xml-security/c/src/tools/txfmout/txfmout.cpp
  
  Index: txfmout.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/tools/txfmout/txfmout.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- txfmout.cpp	17 Feb 2003 11:22:39 -0000	1.3
  +++ txfmout.cpp	20 Feb 2003 10:34:24 -0000	1.4
  @@ -68,6 +68,9 @@
    * $Id$
    *
    * $Log$
  + * Revision 1.4  2003/02/20 10:34:24  blautenb
  + * Check for unistd.h
  + *
    * Revision 1.3  2003/02/17 11:22:39  blautenb
    * Now handle relative file URIs in references
    *
  @@ -99,7 +102,16 @@
   #include <string.h>
   #include <iostream.h>
   #include <stdlib.h>
  -#include <direct.h>
  +
  +#if defined(HAVE_UNISTD_H)
  +# include <unistd.h>
  +# define _MAX_PATH NAME_MAX
  +#else
  +# if defined(HAVE_DIRECT_H)
  +#  include <direct.h>
  +# endif
  +#endif
  +
   
   #include <xercesc/util/PlatformUtils.hpp>
   #include <xercesc/util/XMLString.hpp>
  
  
  

Mime
View raw message