summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--indexlib/boost-compat/config/compiler/common_edg.h2
-rw-r--r--indexlib/boost-compat/config/compiler/gcc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/indexlib/boost-compat/config/compiler/common_edg.h b/indexlib/boost-compat/config/compiler/common_edg.h
index 28b164a8..6b2c1354 100644
--- a/indexlib/boost-compat/config/compiler/common_edg.h
+++ b/indexlib/boost-compat/config/compiler/common_edg.h
@@ -35,7 +35,7 @@
#endif
// See also kai.h which checks a Kai-specific symbol for EH
-# if !defined(__KCC) && !defined(__EXCEPTIONS)
+# if !defined(__KCC) && defined(Q_NO_EXCEPTIONS)
# define BOOST_NO_EXCEPTIONS
# endif
diff --git a/indexlib/boost-compat/config/compiler/gcc.h b/indexlib/boost-compat/config/compiler/gcc.h
index 4be7f408..23cd12f9 100644
--- a/indexlib/boost-compat/config/compiler/gcc.h
+++ b/indexlib/boost-compat/config/compiler/gcc.h
@@ -39,7 +39,7 @@
# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
# endif
-#ifndef __EXCEPTIONS
+#ifdef Q_NO_EXCEPTIONS
# define BOOST_NO_EXCEPTIONS
#endif