From 32546e22828e793e3881e1055acb72b6a044e331 Mon Sep 17 00:00:00 2001 From: Rat Date: Mon, 7 Jun 2010 19:10:55 +0200 Subject: added ace + vcproj for win --HG-- branch : trunk --- externals/ace/String_Base_Const.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 externals/ace/String_Base_Const.cpp (limited to 'externals/ace/String_Base_Const.cpp') diff --git a/externals/ace/String_Base_Const.cpp b/externals/ace/String_Base_Const.cpp new file mode 100644 index 00000000000..e3f0f18f429 --- /dev/null +++ b/externals/ace/String_Base_Const.cpp @@ -0,0 +1,20 @@ +// $Id: String_Base_Const.cpp 80826 2008-03-04 14:51:23Z wotte $ + +#include "ace/String_Base_Const.h" +#include "ace/Numeric_Limits.h" + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_String_Base_Const::size_type const ACE_String_Base_Const::npos = +#if defined (AIX) //&& (defined (__xlC__) || defined (__IBMCPP__)) + // Under some mixed shared/static linking conditions, this constant + // will not be initialized at run-time if the + // std::numeric_limits<>::max() trait is used on AIX/XLC++. + // Workaround that problem by making it easier for the compiler to + // realize it can set the constant at compile-time. + static_cast (-1); +#else + ACE_Numeric_Limits::max (); +#endif /* AIX */ + +ACE_END_VERSIONED_NAMESPACE_DECL -- cgit v1.2.3