From e3e2a6941dbfb3bd847fc6397f51f2a9bac6db83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Wed, 11 Jun 2003 07:10:07 +0000 Subject: [PATCH] the ios issue git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7143 a592a061-630c-0410-9148-cb99ea01b6c8 --- config/ChangeLog | 6 +++++- config/configure.ac | 2 +- src/ChangeLog | 5 +++++ src/main.C | 6 +++++- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/config/ChangeLog b/config/ChangeLog index 3ad562a506..6328d4583e 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,6 +1,10 @@ +2003-06-11 Lars Gullik Bjønnes + + * configure.ac: also check for header + 2003-05-26 Jean-Marc Lasgouttes - * relyx_configure.ac: + * relyx_configure.ac: * relyx_configure.in: add AM_MAINTAINER_MODE here too. 2003-05-20 Angus Leeming diff --git a/config/configure.ac b/config/configure.ac index d9a5a0d16e..f2c33e9e4b 100644 --- a/config/configure.ac +++ b/config/configure.ac @@ -73,7 +73,7 @@ LYX_CXX_GLOBAL_CSTD LYX_STD_COUNT dnl we disable rtti for now dnl LYX_CXX_RTTI -AC_CHECK_HEADERS(ostream istream sstream locale limits) +AC_CHECK_HEADERS(ostream istream sstream locale limits ios) LYX_CXX_STL_MODERN_STREAMS ### and now some special lyx flags. diff --git a/src/ChangeLog b/src/ChangeLog index 26bddd322b..137b7d4ba6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-06-11 Lars Gullik Bjønnes + + * main.C: protect with HAVE_IOS + (main): protect sync_with_stdio with HAVE_IOS + 2003-06-10 Lars Gullik Bjønnes * text2.C (cutSelection): adjust diff --git a/src/main.C b/src/main.C index 6ba9adc0c7..1b21c24b6f 100644 --- a/src/main.C +++ b/src/main.C @@ -13,11 +13,15 @@ #include "gettext.h" #include "support/os.h" +#ifdef HAVE_IOS #include +#endif int main(int argc, char * argv[]) { - std::ios::sync_with_stdio(false); +#ifdef HAVE_IOS + std::ios_base::sync_with_stdio(false); +#endif os::init(&argc, &argv); -- 2.39.2