From 12a6d463703010a006b2dcd15ccddafa6335fa59 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 28 Sep 2006 00:42:47 +0000 Subject: [PATCH] Small fixes for STLPort compliance * src/cursor.C: add using std::for_each; * src/graphics/GraphicsTypes.h: add #include * src/graph.C: add using std::fill; * src/frontends/controllers/helper_funcs.h: add #include * src/bufferview_funcs.C: add using std::find; * src/lyx_main.C: add using std::for_each; * configure.ac: don't use boost format on cygwin git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15176 a592a061-630c-0410-9148-cb99ea01b6c8 --- configure.ac | 2 +- src/bufferview_funcs.C | 1 + src/cursor.C | 1 + src/frontends/controllers/helper_funcs.h | 1 + src/graph.C | 1 + src/graphics/GraphicsTypes.h | 2 ++ src/lyx_main.C | 1 + 7 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ecb4cd26c3..5bcbe727e6 100644 --- a/configure.ac +++ b/configure.ac @@ -388,7 +388,7 @@ int mkstemp(char*); #endif #endif -#if defined(HAVE_OSTREAM) && defined(HAVE_LOCALE) && defined(HAVE_SSTREAM) +#if defined(HAVE_OSTREAM) && defined(HAVE_LOCALE) && defined(HAVE_SSTREAM) && !defined(__CYGWIN__) # define USE_BOOST_FORMAT 1 #else # define USE_BOOST_FORMAT 0 diff --git a/src/bufferview_funcs.C b/src/bufferview_funcs.C index 9f9f198c30..48dbad0357 100644 --- a/src/bufferview_funcs.C +++ b/src/bufferview_funcs.C @@ -46,6 +46,7 @@ using std::istringstream; using std::ostringstream; using std::string; using std::vector; +using std::find; namespace bv_funcs { diff --git a/src/cursor.C b/src/cursor.C index ee3b064c8b..a94fdc2800 100644 --- a/src/cursor.C +++ b/src/cursor.C @@ -64,6 +64,7 @@ using std::endl; using std::isalpha; #endif using std::min; +using std::for_each; namespace { diff --git a/src/frontends/controllers/helper_funcs.h b/src/frontends/controllers/helper_funcs.h index 36def74d20..b3ba620dca 100644 --- a/src/frontends/controllers/helper_funcs.h +++ b/src/frontends/controllers/helper_funcs.h @@ -16,6 +16,7 @@ #include #include #include +#include namespace lyx { diff --git a/src/graph.C b/src/graph.C index 87c67fc075..8e7a7a131c 100644 --- a/src/graph.C +++ b/src/graph.C @@ -17,6 +17,7 @@ using std::vector; using std::reverse; +using std::fill; int Graph::bfs_init(int s, bool clear_visited) diff --git a/src/graphics/GraphicsTypes.h b/src/graphics/GraphicsTypes.h index 1b34eabd77..f3e37b54c8 100644 --- a/src/graphics/GraphicsTypes.h +++ b/src/graphics/GraphicsTypes.h @@ -17,6 +17,8 @@ #include "support/translator.h" +#include + namespace lyx { namespace graphics { diff --git a/src/lyx_main.C b/src/lyx_main.C index 9a15cda10d..100d845f53 100644 --- a/src/lyx_main.C +++ b/src/lyx_main.C @@ -80,6 +80,7 @@ namespace fs = boost::filesystem; using std::endl; using std::string; using std::vector; +using std::for_each; #ifndef CXX_GLOBAL_CSTD using std::exit; -- 2.39.2