aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-08-25 00:37:55 +0200
committerShauren <shauren.trinity@gmail.com>2015-08-25 00:37:55 +0200
commitec5700c2a25e64842a9d3f81b48535b349a9d466 (patch)
tree928eddca72514497628ecbaa10c651933ede46e4
parentb8e776a6c6e6c74ef64a931cded0043d2bfb2279 (diff)
Core/Misc: Fixed macro redefinition warnings when building for running under helgrind
-rw-r--r--src/common/Define.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/Define.h b/src/common/Define.h
index 99c89e584f3..cf288c3053f 100644
--- a/src/common/Define.h
+++ b/src/common/Define.h
@@ -33,6 +33,8 @@
# endif
# if defined(HELGRIND)
# include <valgrind/helgrind.h>
+# undef _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE
+# undef _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER
# define _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(A) ANNOTATE_HAPPENS_BEFORE(A)
# define _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(A) ANNOTATE_HAPPENS_AFTER(A)
# endif