mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Add patch for Windows with Cygwin.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25883 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
442e0d195d
commit
0f194ef5c1
2 changed files with 17 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-01-07 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/win32/WIN32Server.m (-receivedEvent:...forMode:): Add
|
||||
#ifdef for Cygwin.
|
||||
|
||||
2008-01-01 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Version 0.13.1
|
||||
|
|
|
@ -128,20 +128,24 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
|
|||
extra: (void*)extra
|
||||
forMode: (NSString*)mode
|
||||
{
|
||||
#ifdef __CYGWIN__
|
||||
if (type == ET_RDESC)
|
||||
#else
|
||||
if (type == ET_WINMSG)
|
||||
#endif
|
||||
{
|
||||
MSG *m = (MSG*)extra;
|
||||
|
||||
if (m->message == WM_QUIT)
|
||||
{
|
||||
[NSApp terminate: nil];
|
||||
// Exit the program
|
||||
return;
|
||||
}
|
||||
{
|
||||
[NSApp terminate: nil];
|
||||
// Exit the program
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
DispatchMessage(m);
|
||||
}
|
||||
{
|
||||
DispatchMessage(m);
|
||||
}
|
||||
}
|
||||
if (mode != nil)
|
||||
[self callback: mode];
|
||||
|
|
Loading…
Reference in a new issue