- Fix build with gcc 4.2

PR:		114745
Submitted by:	Matthias Sund <m.sund@arcor.de> (maintainer)
This commit is contained in:
Martin Wilke 2007-07-27 16:39:56 +00:00
parent b7732c6bd4
commit ef5eac6fc1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196422

View file

@ -0,0 +1,19 @@
--- uppsrc/Core/Core.h.orig Thu Jul 19 19:57:53 2007
+++ uppsrc/Core/Core.h Thu Jul 19 19:59:16 2007
@@ -300,8 +300,16 @@
#include <string>
#ifdef PLATFORM_POSIX
+#ifdef COMPILER_GCC
+#if __GNUC__ > 3
+#include <ext/atomicity.h>
+#else
+#include <bits/atomicity.h>
+#endif
+#else
#include <bits/atomicity.h>
#endif
+#endif
// fix MSC8 beta problem....
#ifdef COMPILER_MSC