mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
3bcf1499d1
commit
37b0280356
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user