[gtkmm/gtkmm-2-22] Fixed MSVC build of gtkmm-demo
- From: Armin Burgmeier <arminb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-2-22] Fixed MSVC build of gtkmm-demo
- Date: Sat, 2 Oct 2010 21:11:23 +0000 (UTC)
commit 27558f0fec23d8c4f5c707ee4626566f0c2910e0
Author: Armin Burgmeier <armin arbur net>
Date: Sat Oct 2 19:55:15 2010 +0200
Fixed MSVC build of gtkmm-demo
demos/gtk-demo/demowindow.cc | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/demowindow.cc b/demos/gtk-demo/demowindow.cc
index 667f699..02e2056 100644
--- a/demos/gtk-demo/demowindow.cc
+++ b/demos/gtk-demo/demowindow.cc
@@ -211,7 +211,9 @@ bool DemoWindow::read_line (FILE *stream, GString *str)
#ifdef HAVE_GETC_UNLOCKED
c = getc_unlocked (stream);
-#endif //GLIBMM_PROPERTIES_ENABLED
+#else
+ c = getc(stream);
+#endif //HAVE_GETC_UNLOCKED
if (c == EOF)
goto done;
else
@@ -224,7 +226,9 @@ bool DemoWindow::read_line (FILE *stream, GString *str)
{
#ifdef HAVE_GETC_UNLOCKED
int next_c = getc_unlocked (stream);
-#endif //GLIBMM_PROPERTIES_ENABLED
+#else
+ int next_c = getc(stream);
+#endif //HAVE_GETC_UNLOCKED
if (!(next_c == EOF ||
(c == '\r' && next_c == '\n') ||
(c == '\n' && next_c == '\r')))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]