projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug 403, added logging to tcp and email
[org.ibex.core.git]
/
src
/
org
/
ibex
/
plat
/
Win32.cc
diff --git
a/src/org/ibex/plat/Win32.cc
b/src/org/ibex/plat/Win32.cc
index
a4d10fa
..
9834ce2
100644
(file)
--- a/
src/org/ibex/plat/Win32.cc
+++ b/
src/org/ibex/plat/Win32.cc
@@
-147,7
+147,8
@@
static unsigned char hand_cursor_and[32 * 4] = {
};
void org::ibex::plat::Win32::natPreInit() {
};
void org::ibex::plat::Win32::natPreInit() {
- if (org::ibex::util::Log::verbose) {
+ // Win32 throws stderr in the trash unless you designate your binary as a "console binary"
+ if (org::ibex::Log::logstream == java::lang::System::err) {
AllocConsole();
freopen("CONOUT$", "w+t", stderr);
}
AllocConsole();
freopen("CONOUT$", "w+t", stderr);
}