]> git.lyx.org Git - features.git/commitdiff
Small fixes for STLPort compliance
authorEnrico Forestieri <forenr@lyx.org>
Thu, 28 Sep 2006 00:42:47 +0000 (00:42 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 28 Sep 2006 00:42:47 +0000 (00:42 +0000)
* src/cursor.C: add using std::for_each;

* src/graphics/GraphicsTypes.h: add #include <string>

* src/graph.C: add using std::fill;

* src/frontends/controllers/helper_funcs.h: add #include <algorithm>

* 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
src/bufferview_funcs.C
src/cursor.C
src/frontends/controllers/helper_funcs.h
src/graph.C
src/graphics/GraphicsTypes.h
src/lyx_main.C

index ecb4cd26c3f99829f953deb2ec3ea1baf7b8511e..5bcbe727e643d1eae769c985a7af8fb5a958d104 100644 (file)
@@ -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
index 9f9f198c303fc3087573b349f0b7e4e7c4107506..48dbad035778f6887436dc3df972556200995e12 100644 (file)
@@ -46,6 +46,7 @@ using std::istringstream;
 using std::ostringstream;
 using std::string;
 using std::vector;
+using std::find;
 
 
 namespace bv_funcs {
index ee3b064c8b04fb385760146fc939af5c0cbe8a7c..a94fdc2800800580fe1c0e8f2b78d8585828f28b 100644 (file)
@@ -64,6 +64,7 @@ using std::endl;
 using std::isalpha;
 #endif
 using std::min;
+using std::for_each;
 
 namespace {
 
index 36def74d207e43bc6f45c97b371d475ea7fc4304..b3ba620dca97f38c61bd4fed471dce5a116e4f76 100644 (file)
@@ -16,6 +16,7 @@
 #include <utility>
 #include <vector>
 #include <string>
+#include <algorithm>
 
 
 namespace lyx {
index 87c67fc0758f989088f24fcd50a8f622c6bb425d..8e7a7a131c5a5f1c75d387a19b44dc240e199059 100644 (file)
@@ -17,6 +17,7 @@
 
 using std::vector;
 using std::reverse;
+using std::fill;
 
 
 int Graph::bfs_init(int s, bool clear_visited)
index 1b34eabd77d535603e4aaa1cc4de85f8fe6aea5b..f3e37b54c8266fbe25ccca69357f1ae8c85ac7c9 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "support/translator.h"
 
+#include <string>
+
 
 namespace lyx {
 namespace graphics {
index 9a15cda10db540757368e6c380b67bdff2d9ebb3..100d845f539d69cb086fbcdae591c742aac89611 100644 (file)
@@ -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;