Compilation fix: give C_read_callback extern "C" linkage.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4636 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-07-15 09:04:03 +00:00
parent 2fd0569093
commit c5e3aebca3
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2002-07-14 Angus Leeming <leeming@lyx.org>
* lyx_gui.C (C_read_callback): give it extern "C" linkage.
2002-07-14 John Levon <moz@compsoc.man.ac.uk>
* lyx_gui.C: add set_read_callback()

View File

@ -354,11 +354,14 @@ bool lyx_gui::font_available(LyXFont const & font)
}
namespace {
void C_read_callback(int, void * data)
{
LyXComm * comm = static_cast<LyXComm *>(data);
comm->read_ready();
}
extern "C"
void C_read_callback(int, void * data)
{
LyXComm * comm = static_cast<LyXComm *>(data);
comm->read_ready();
}
}
void lyx_gui::set_read_callback(int fd, LyXComm * comm)