[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/kernel
From: Andre Heinecke <aheinecke () intevation ! de>
Date: 2010-07-16 9:46:55
Message-ID: 20100716094655.2EE09AC73D () svn ! kde ! org
[Download RAW message or body]
SVN commit 1150591 by aheinecke:
Add Windows CE as a subsystem and enable the redirection of debug output for
Windows CE
M +12 -0 kkernel_win.cpp
--- trunk/KDE/kdelibs/kdecore/kernel/kkernel_win.cpp #1150590:1150591
@@ -383,6 +383,10 @@
*/
static int subSystem()
{
+#ifdef _WIN32_WCE
+ // there is only one subsystem on Windows CE
+ return IMAGE_SUBSYSTEM_WINDOWS_CE_GUI;
+#else
static int subSystem = -1;
if (subSystem > -1)
return subSystem;
@@ -397,6 +401,7 @@
}
subSystem = ntHeader->OptionalHeader.Subsystem;
return subSystem;
+#endif
}
/**
@@ -416,6 +421,8 @@
gui yes win32debug console console
gui no win32debug win32debug win32debug
+ win-ce no win32debug win32debug win32debug
+
[1]no redirect solution for FILE * based output yet
TODO: report events to the windows event log system
@@ -457,6 +464,11 @@
oldStderrBuffer = std::cerr.rdbuf(&stderrBuffer);
// TODO: redirect FILE * level to console, no idea how to do yet
}
+ } else if (subSystem() == IMAGE_SUBSYSTEM_WINDOWS_CE_GUI) {
+ // do not try to get a console on WinCE systems
+ qInstallMsgHandler(kMessageOutputDebugString);
+ oldStdoutBuffer = std::cout.rdbuf(&stdoutBuffer);
+ oldStderrBuffer = std::cerr.rdbuf(&stderrBuffer);
}
else
qWarning("unknown subsystem %d detected, could not setup qt message \
handler",subSystem());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic