Remove XALAN_HAS_STD_DISTANCE
diff --git a/src/xalanc/Include/AIXDefinitions.hpp b/src/xalanc/Include/AIXDefinitions.hpp
index 2f58e08..bfa171c 100644
--- a/src/xalanc/Include/AIXDefinitions.hpp
+++ b/src/xalanc/Include/AIXDefinitions.hpp
@@ -36,7 +36,6 @@
 
 #define XALAN_POSIX2_AVAILABLE
 #define XALAN_EXPLICIT_SCOPE_IN_TEMPLATE_BUG
-#define XALAN_HAS_STD_DISTANCE
 
 
 
diff --git a/src/xalanc/Include/GCCDefinitions.hpp b/src/xalanc/Include/GCCDefinitions.hpp
index e0ccc4b..6ef2504 100644
--- a/src/xalanc/Include/GCCDefinitions.hpp
+++ b/src/xalanc/Include/GCCDefinitions.hpp
@@ -34,7 +34,6 @@
 
 
 #define XALAN_INLINE_INITIALIZATION
-#define XALAN_HAS_STD_DISTANCE
 
 #if defined(CYGWIN)
 #if defined(WIN32)
diff --git a/src/xalanc/Include/HPUXDefinitions.hpp b/src/xalanc/Include/HPUXDefinitions.hpp
index ab66a1a..3cda3db 100644
--- a/src/xalanc/Include/HPUXDefinitions.hpp
+++ b/src/xalanc/Include/HPUXDefinitions.hpp
@@ -33,7 +33,6 @@
 #define XALAN_PLATFORM_IMPORT_FUNCTION(T) T XALAN_PLATFORM_IMPORT
 
 #if defined(_HP_NAMESPACE_STD)
-#define XALAN_HAS_STD_DISTANCE
 #else
 #if defined(RWSTD_MULTI_THREAD) && !defined(__HPACC_THREAD_SAFE_RB_TREE)
 #define __HPACC_THREAD_SAFE_RB_TREE
diff --git a/src/xalanc/Include/IntelDefinitions.hpp b/src/xalanc/Include/IntelDefinitions.hpp
index 1dc3453..17e3969 100644
--- a/src/xalanc/Include/IntelDefinitions.hpp
+++ b/src/xalanc/Include/IntelDefinitions.hpp
@@ -33,7 +33,6 @@
 
 
 
-#define XALAN_HAS_STD_DISTANCE
 #define XALAN_POSIX2_AVAILABLE
 #define XALAN_INLINE_INITIALIZATION
 
diff --git a/src/xalanc/Include/OS390Definitions.hpp b/src/xalanc/Include/OS390Definitions.hpp
index 5354696..3df06ef 100644
--- a/src/xalanc/Include/OS390Definitions.hpp
+++ b/src/xalanc/Include/OS390Definitions.hpp
@@ -36,7 +36,6 @@
 #define XALAN_NON_ASCII_PLATFORM
 
 #define XALAN_EXPLICIT_SCOPE_IN_TEMPLATE_BUG
-#define XALAN_HAS_STD_DISTANCE
 #define XALAN_NO_REENTRANT_TIME_FUNCTIONS
 #define XALAN_POSIX2_AVAILABLE
 
diff --git a/src/xalanc/Include/SolarisDefinitions.hpp b/src/xalanc/Include/SolarisDefinitions.hpp
index 75234d0..0a9b4fb 100644
--- a/src/xalanc/Include/SolarisDefinitions.hpp
+++ b/src/xalanc/Include/SolarisDefinitions.hpp
@@ -33,7 +33,6 @@
 
 
 #if defined(_STLP_CONFIG_H)
-#define XALAN_HAS_STD_DISTANCE
 #else
 #define XALAN_RW_NO_CLASS_PARTIAL_SPEC
 #endif
diff --git a/src/xalanc/Include/TRU64Definitions.hpp b/src/xalanc/Include/TRU64Definitions.hpp
index 2d79d9d..0f72404 100644
--- a/src/xalanc/Include/TRU64Definitions.hpp
+++ b/src/xalanc/Include/TRU64Definitions.hpp
@@ -37,7 +37,6 @@
 #define __USE_STD_IOSTREAM
 #define XALAN_POSIX2_AVAILABLE
 #define XALAN_INLINE_INITIALIZATION
-#define XALAN_HAS_STD_DISTANCE
 #define XALAN_NO_REENTRANT_TIME_FUNCTIONS
 
 
diff --git a/src/xalanc/Include/VCPPDefinitions.hpp b/src/xalanc/Include/VCPPDefinitions.hpp
index 9e7cd1f..9da4fad 100644
--- a/src/xalanc/Include/VCPPDefinitions.hpp
+++ b/src/xalanc/Include/VCPPDefinitions.hpp
@@ -53,7 +53,6 @@
 #endif
 
 #define XALAN_NEWLINE_IS_CRLF
-#define XALAN_HAS_STD_DISTANCE
 #define XALAN_NO_REENTRANT_TIME_FUNCTIONS
 
 // long long is not supported on all MS compilers.
diff --git a/src/xalanc/Include/XalanVector.hpp b/src/xalanc/Include/XalanVector.hpp
index 6b42948..b1f7d47 100644
--- a/src/xalanc/Include/XalanVector.hpp
+++ b/src/xalanc/Include/XalanVector.hpp
@@ -911,15 +911,7 @@
         // assert this...
         assert(theFirst <= theLast);
 
-#if defined(XALAN_HAS_STD_DISTANCE)
         return std::distance(theFirst, theLast);
-#else
-        size_type   theDistance = size_type(0);
-
-        std::distance(theFirst, theLast, theDistance);
-
-        return theDistance;
-#endif
     }
 
     value_type*