summaryrefslogtreecommitdiffstats
path: root/src/ninja.cc
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2015-08-10 04:25:09 (GMT)
committerScott Graham <scottmg@chromium.org>2015-08-10 04:25:09 (GMT)
commita6265082f4d5e2ca08284117ae1a8f037379f5bf (patch)
tree35ef5a34d25d56d2fa5d77a1617ffde8191aadce /src/ninja.cc
parenta4327b9fb07f1ea678e92c1f06aeb22c129827e2 (diff)
downloadNinja-a6265082f4d5e2ca08284117ae1a8f037379f5bf.zip
Ninja-a6265082f4d5e2ca08284117ae1a8f037379f5bf.tar.gz
Ninja-a6265082f4d5e2ca08284117ae1a8f037379f5bf.tar.bz2
Some mucking with std:: for set_terminate and terminate_handler
Diffstat (limited to 'src/ninja.cc')
-rw-r--r--src/ninja.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 3756123..a3d963f 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -1156,7 +1156,7 @@ int main(int argc, char** argv) {
#if defined(_MSC_VER)
// Set a handler to catch crashes not caught by the __try..__except
// block (e.g. an exception in a stack-unwind-block).
- set_terminate(TerminateHandler);
+ std::set_terminate(TerminateHandler);
__try {
// Running inside __try ... __except suppresses any Windows error
// dialogs for errors such as bad_alloc.