the ios issue

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7143 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-06-11 07:10:07 +00:00
parent bd1f4fa8f2
commit e3e2a6941d
4 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2003-06-11 Lars Gullik Bjønnes <larsbj@gullik.net>
* configure.ac: also check for <ios> header
2003-05-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* relyx_configure.ac:

View File

@ -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.

View File

@ -1,3 +1,8 @@
2003-06-11 Lars Gullik Bjønnes <larsbj@gullik.net>
* main.C: protect <ios> with HAVE_IOS
(main): protect sync_with_stdio with HAVE_IOS
2003-06-10 Lars Gullik Bjønnes <larsbj@lyx.org>
* text2.C (cutSelection): adjust

View File

@ -13,11 +13,15 @@
#include "gettext.h"
#include "support/os.h"
#ifdef HAVE_IOS
#include <ios>
#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);