aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libcxx/exception.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-06 11:25:22 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-06 11:25:22 -0700
commita3c7cecba7fa868bf1f055b4b94edceb442f29c2 (patch)
tree6eb7fd8b13d3ee6ab449ce5dbc3cfb2ce9741486 /system/lib/libcxx/exception.cpp
parent02e17989658240e921d41c9c7a40c5ff3c52c563 (diff)
parente5f6f3a3d80a0c79860ebf4638183c8edc3dfe33 (diff)
Merge pull request #1596 from waywardmonkeys/change-preprocessor-define-libcxx
Change preprocessor define libcxx
Diffstat (limited to 'system/lib/libcxx/exception.cpp')
-rw-r--r--system/lib/libcxx/exception.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/lib/libcxx/exception.cpp b/system/lib/libcxx/exception.cpp
index d3e1b292..3487bd8b 100644
--- a/system/lib/libcxx/exception.cpp
+++ b/system/lib/libcxx/exception.cpp
@@ -78,7 +78,7 @@ get_terminate() _NOEXCEPT
return __sync_fetch_and_add(&__terminate_handler, (terminate_handler)0);
}
-#ifndef EMSCRIPTEN // We provide this in JS
+#ifndef __EMSCRIPTEN__ // We provide this in JS
_LIBCPP_NORETURN
void
terminate() _NOEXCEPT
@@ -101,10 +101,10 @@ terminate() _NOEXCEPT
}
#endif // _LIBCPP_NO_EXCEPTIONS
}
-#endif // !EMSCRIPTEN
+#endif // !__EMSCRIPTEN__
#endif // !defined(LIBCXXRT) && !defined(_LIBCPPABI_VERSION)
-#if !defined(LIBCXXRT) && !defined(__GLIBCXX__) && !defined(EMSCRIPTEN)
+#if !defined(LIBCXXRT) && !defined(__GLIBCXX__) && !defined(__EMSCRIPTEN__)
bool uncaught_exception() _NOEXCEPT
{
#if defined(__APPLE__) || defined(_LIBCPPABI_VERSION)