auriemma 00/11/30 13:09:22
Modified: c/src/PlatformSupport DirectoryEnumerator.hpp
Log:
HP port based on work from Trevor Smigiel and Troy Heber.
Revision Changes Path
1.13 +10 -1 xml-xalan/c/src/PlatformSupport/DirectoryEnumerator.hpp
Index: DirectoryEnumerator.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DirectoryEnumerator.hpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- DirectoryEnumerator.hpp 2000/11/02 01:45:36 1.12
+++ DirectoryEnumerator.hpp 2000/11/30 21:09:18 1.13
@@ -150,7 +150,7 @@
*/
bool isDirectory() const
{
-#if defined(AIX)
+#if defined(AIX) || defined(HPUX)
return false;
#else
return d_type == DT_DIR;
@@ -282,6 +282,15 @@
struct DirectoryEnumeratorFunctor : public std::unary_function<StringType,
CollectionType>
#endif
{
+#if defined(XALAN_NO_NAMESPACES)
+ typedef unary_function<StringType, CollectionType> BaseClassType;
+#else
+ typedef std::unary_function<StringType, CollectionType> BaseClassType;
+#endif
+
+ typedef typename BaseClassType::result_type result_type;
+ typedef typename BaseClassType::argument_type argument_type;
+
result_type
operator()(const argument_type& theDirectory) const
{