]> git.lyx.org Git - lyx.git/blobdiff - src/support/os_win32.cpp
CMake: fix merged build, seems GCC could not handle the namespaces correctly
[lyx.git] / src / support / os_win32.cpp
index d3ec20dffd42b6ddb624a63b5efeb335ff446a51..19d28d7e4bb766951372002e4cd5f702584bd9ec 100644 (file)
@@ -72,7 +72,7 @@ using namespace std;
 
 namespace lyx {
 
-void emergencyCleanup();
+void lyx_exit(int);
 
 namespace support {
 namespace os {
@@ -88,7 +88,7 @@ BOOL terminate_handler(DWORD event)
        if (event == CTRL_CLOSE_EVENT
            || event == CTRL_LOGOFF_EVENT
            || event == CTRL_SHUTDOWN_EVENT) {
-               lyx::emergencyCleanup();
+               lyx::lyx_exit(1);
                return TRUE;
        }
        return FALSE;