Trivial fix for std::exit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4385 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-06-12 14:50:27 +00:00
parent 3bcf1499d1
commit 37b0280356
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-06-12 Angus Leeming <leeming@lyx.org>
* lyx_gui.C (parse_init): exit isn't in namespace lyx_gui!
2002-06-12 Angus Leeming <leeming@lyx.org>
* FormParagraph.C: include ParagraphParameters.h now that

View File

@ -42,6 +42,10 @@
#include <boost/bind.hpp>
#ifndef CXX_GLOBAL_CSTD
using std::exit;
#endif
using std::vector;
using std::hex;
using std::endl;
@ -135,7 +139,7 @@ void lyx_gui::parse_init(int & argc, char * argv[])
if (!display) {
lyxerr << "LyX: unable to access X display, exiting" << endl;
os::warn("Unable to access X display, exiting");
exit(1);
::exit(1);
}
fcntl(ConnectionNumber(display), F_SETFD, FD_CLOEXEC);