aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ChangeLog.ja5
-rw-r--r--configure.in2
-rw-r--r--src/main.c6
4 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fee4ab1b..2c7fddf8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-03-01
+
+ * src/main.c: win32: do console initialization only once.
+
2006-02-28
* src/main.c: win32: output debug and help messages to newly created
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 983aed1e..9865570e 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,3 +1,8 @@
+2006-03-01
+
+ * src/main.c: win32: コンソールの初期化を一度だけしか行わないように
+ した。
+
2006-02-28
* src/main.c: win32: デバッグ、ヘルプメッセージを新規に作成した
diff --git a/configure.in b/configure.in
index 7d3ebc1f..690cbba2 100644
--- a/configure.in
+++ b/configure.in
@@ -9,7 +9,7 @@ MINOR_VERSION=2
MICRO_VERSION=1
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=
+EXTRA_VERSION=+svn
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
diff --git a/src/main.c b/src/main.c
index a2e6578b..ff62ce31 100644
--- a/src/main.c
+++ b/src/main.c
@@ -270,6 +270,10 @@ static void init_console(void)
#ifdef G_OS_WIN32
gint fd;
FILE *fp;
+ static gboolean init_console_done = FALSE;
+
+ if (init_console_done)
+ return;
if (!AllocConsole()) {
g_warning("AllocConsole() failed\n");
@@ -286,6 +290,8 @@ static void init_console(void)
fp = _fdopen(fd, "w");
*stderr = *fp;
setvbuf(stderr, NULL, _IONBF, 0);
+
+ init_console_done = TRUE;
#endif
}