From cfb22d3c14b53bc73ec90f7d471c2d2d2453cf03 Mon Sep 17 00:00:00 2001 From: Anand Shukla Date: Tue, 25 Jun 2002 20:55:50 +0000 Subject: changes to make it compatible with 64bit gcc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2791 91177308-0d34-0410-b5e6-96231b3b80d8 --- support/lib/Support/Signals.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'support/lib/Support/Signals.cpp') diff --git a/support/lib/Support/Signals.cpp b/support/lib/Support/Signals.cpp index 8aa1b6047a..29daedf0fb 100644 --- a/support/lib/Support/Signals.cpp +++ b/support/lib/Support/Signals.cpp @@ -11,8 +11,9 @@ #include #include #include +using std::string; -static vector FilesToRemove; +static std::vector FilesToRemove; // IntSigs - Signals that may interrupt the program at any time. static const int IntSigs[] = { @@ -36,7 +37,7 @@ static void SignalHandler(int Sig) { FilesToRemove.pop_back(); } - if (find(IntSigs, IntSigsEnd, Sig) != IntSigsEnd) + if (std::find(IntSigs, IntSigsEnd, Sig) != IntSigsEnd) exit(1); // If this is an interrupt signal, exit the program // Otherwise if it is a fault (like SEGV) reissue the signal to die... @@ -48,6 +49,6 @@ static void RegisterHandler(int Signal) { signal(Signal, SignalHandler); } void RemoveFileOnSignal(const string &Filename) { FilesToRemove.push_back(Filename); - for_each(IntSigs, IntSigsEnd, RegisterHandler); - for_each(KillSigs, KillSigsEnd, RegisterHandler); + std::for_each(IntSigs, IntSigsEnd, RegisterHandler); + std::for_each(KillSigs, KillSigsEnd, RegisterHandler); } -- cgit v1.2.3-18-g5258