<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -228,6 +228,8 @@ fi
 
 AM_CONDITIONAL([MANGOS_BUILD_ACE], [test X$need_to_build_ace = Xyes])
 
+# old ace versions not have ace/Stack_Trace.h
+AC_CHECK_HEADERS([ace/Stack_Trace.h])
 
 ## Unify all additional includes/libs in one variable.
 # TODO this looks kinda ugly, but when we add m4 folder I will make it look very pritey ( by Derex ).</diff>
      <filename>configure.ac</filename>
    </modified>
    <modified>
      <diff>@@ -19,9 +19,21 @@
 #ifndef MANGOSSERVER_ERRORS_H
 #define MANGOSSERVER_ERRORS_H
 
+#include &quot;Common.h&quot;
+
+#ifndef HAVE_CONFIG_H
+#define HAVE_ACE_STACK_TRACE_H 1
+#endif
+
+#ifdef HAVE_ACE_STACK_TRACE_H
 #include &quot;ace/Stack_Trace.h&quot;
+#endif
 
+#ifdef HAVE_ACE_STACK_TRACE_H                               // old versions ACE not have Stack_Trace.h but used at some oS for better compatibility
 #define WPAssert( assertion ) { if (!(assertion)) { ACE_Stack_Trace st; fprintf( stderr, &quot;\n%s:%i in %s ASSERTION FAILED:\n  %s\n%s\n&quot;, __FILE__, __LINE__,__FUNCTION__,  #assertion, st.c_str()); assert( #assertion &amp;&amp;0 ); } }
+#else
+#define WPAssert( assertion ) { if (!(assertion)) { fprintf( stderr, &quot;\n%s:%i in %s ASSERTION FAILED2:\n  %s\n&quot;, __FILE__, __LINE__,__FUNCTION__,  #assertion); assert( #assertion &amp;&amp;0 ); } }
+#endif
 #define WPError( assertion, errmsg ) if( ! (assertion) ) { sLog.outError( &quot;%\n%s:%i in %s ERROR:\n  %s\n&quot;, __FILE__, __LINE__, __FUNCTION__, (char *)errmsg ); assert( false ); }
 #define WPWarning( assertion, errmsg ) if( ! (assertion) ) { sLog.outError( &quot;\n%s:%i in %s WARNING:\n  %s\n&quot;, __FILE__, __LINE__, __FUNCTION__, (char *)errmsg ); }
 </diff>
      <filename>src/shared/Errors.h</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
 #ifndef __REVISION_NR_H__
 #define __REVISION_NR_H__
- #define REVISION_NR &quot;8078&quot;
+ #define REVISION_NR &quot;8079&quot;
 #endif // __REVISION_NR_H__</diff>
      <filename>src/shared/revision_nr.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>551b2edfd048e6e24ef9325401eba672892f64a3</id>
    </parent>
  </parents>
  <author>
    <name>VladimirMangos</name>
    <email>vladimir@getmangos.com</email>
  </author>
  <url>http://github.com/mangos/mangos/commit/8fb9be3ed3546d72b7b1561bfbd0bb4151bd255b</url>
  <id>8fb9be3ed3546d72b7b1561bfbd0bb4151bd255b</id>
  <committed-date>2009-06-26T12:30:39-07:00</committed-date>
  <authored-date>2009-06-26T12:23:26-07:00</authored-date>
  <message>[8079] Fixed build errors at use old ACE versions (without ace/Stack_Trace.h).</message>
  <tree>bc7efcb783033df57246bf6decef5c83055a0fcf</tree>
  <committer>
    <name>VladimirMangos</name>
    <email>vladimir@getmangos.com</email>
  </committer>
</commit>
