|
Pol
Revision:476adb3
|
00001 /* 00002 History 00003 ======= 00004 2008/03/01 Shinigami: VS2005 will not use STLport, but VS2003 will use it 00005 2009/09/01 MuadDib: VS2005/2008 Support added with STLPort 5.1.2 00006 00007 Notes 00008 ======= 00009 00010 */ 00011 00012 #ifndef CLIB_STL_INC_H 00013 #define CLIB_STL_INC_H 00014 00015 #ifdef _WIN32 00016 # pragma warning( disable: 4786 )//'identifier' : identifier was truncated to 'number' characters in the debug information 00017 # pragma warning( push, 4 ) 00018 #endif 00019 00020 // Minimum Windows OS: Win98/NT4 00021 // Minimum IE: 4.0 00022 #ifdef _WIN32 00023 # define _WIN32_WINDOWS 0x0410 00024 # define WINVER 0x0400 00025 # define _WIN32_IE 0x0400 00026 #endif 00027 00028 #include <algorithm> 00029 #include <fstream> 00030 #include <functional> 00031 //#include <iomanip> 00032 //#include <ios> 00033 //#include <iostream> 00034 #include <limits> 00035 #include <list> 00036 #include <locale.h> 00037 #include <map> 00038 #include <memory> 00039 #include <queue> 00040 #include <set> 00041 //#include <sstream> 00042 #include <stack> 00043 #include <stdexcept> 00044 //#include <streambuf> 00045 #include <string> 00046 #include <utility> // pair 00047 #include <vector> 00048 #include <mutex> 00049 00050 #include <unordered_map> 00051 #include <unordered_set> 00052 00053 using std::basic_string; 00054 using std::bind2nd; 00055 using std::binder2nd; 00056 using std::char_traits; 00057 using std::dec; 00058 using std::equal_to; 00059 using std::exception; 00060 using std::filebuf; 00061 using std::find; 00062 using std::for_each; 00063 using std::fstream; 00064 using std::getline; 00065 using std::hex; 00066 using std::ios; 00067 using std::ifstream; 00068 using std::istream; 00069 using std::istringstream; 00070 using std::less; 00071 using std::list; 00072 using std::logic_error; 00073 using std::make_pair; 00074 using std::map; 00075 using std::multimap; 00076 using std::not_equal_to; 00077 using std::ofstream; 00078 using std::ostream; 00079 using std::ostringstream; 00080 using std::pair; 00081 using std::priority_queue; 00082 using std::queue; 00083 using std::remove_if; 00084 using std::reverse; 00085 using std::runtime_error; 00086 using std::set; 00087 // using std::setw; 00088 using std::sort; 00089 using std::stack; 00090 using std::streambuf; 00091 using std::streamsize; 00092 using std::string; 00093 using std::swap; 00094 using std::vector; 00095 00096 using std::endl; 00097 00098 using std::unordered_map; 00099 using std::unordered_set; 00100 00101 00102 #ifdef _WIN32 00103 # pragma warning( pop ) 00104 # pragma warning( disable: 4996 ) //'function': was declared deprecated 00105 # pragma warning( disable: 4100 ) //unreferenced formal parameter 00106 # pragma warning( disable: 4505 ) //unreferenced local function has been removed, vs seems to have problems with region virtuals 00107 # pragma warning( disable: 4351 ) //new behavior: elements of array 'array' will be default initialized 00108 00109 # if 0 00110 // this is useful for finding memory leaks 00111 # include <crtdbg.h> 00112 # include "../bscript/bobject.h" 00113 # ifdef _DEBUG 00114 # define DEBUG_CLIENTBLOCK new( _CLIENT_BLOCK, __FILE__, __LINE__) 00115 # else 00116 # define DEBUG_CLIENTBLOCK 00117 # endif // _DEBUG 00118 00119 # ifdef _DEBUG 00120 # define new DEBUG_CLIENTBLOCK 00121 # endif 00122 00123 //#define _CRTDBG_MAP_ALLOC 1 00124 # endif 00125 00126 00127 #endif 00128 00129 #endif