stl cleanup

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@950 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
theraysmith@gmail.com 2014-01-09 17:38:35 +00:00
parent bdb44e1b91
commit 457cc2ddc8

View File

@ -23,32 +23,10 @@
#include "clst.h" #include "clst.h"
#include "coutln.h" #include "coutln.h"
#include "hashfn.h"
#include "rect.h" #include "rect.h"
#include "scrollview.h" #include "scrollview.h"
#ifdef HAVE_CONFIG_H
#include "config_auto.h"
#endif // HAVE_CONFIG_H
#ifdef USE_STD_NAMESPACE
#if (__cplusplus >= 201103L) || defined(_MSC_VER) // Visual Studio
#include <unordered_set>
#if (_MSC_VER >= 1500 && _MSC_VER < 1600) // Visual Studio 2008
using namespace std::tr1;
#else
using std::unordered_set;
#endif
#elif (defined(__GNUC__) && (((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) || \
__GNUC__ >= 4)) // gcc
// hash_set is deprecated in gcc
#include <ext/hash_set>
using __gnu_cxx::hash_set;
#define unordered_set hash_set
#else
#include <hash_set>
#endif // gcc
#endif // USE_STD_NAMESPACE
#include "allheaders.h" #include "allheaders.h"
class BLOCK; class BLOCK;