OgreStdHeaders.h

Go to the documentation of this file.
00001 #ifndef __StdHeaders_H__
00002 #define __StdHeaders_H__
00003 
00004 #ifdef __BORLANDC__
00005     #define __STD_ALGORITHM
00006 #endif
00007 
00008 #if defined ( OGRE_GCC_VISIBILITY )
00009 /* Until libstdc++ for gcc 4.2 is released, we have to declare all
00010  * symbols in libstdc++.so externally visible, otherwise we end up
00011  * with them marked as hidden by -fvisible=hidden.
00012  *
00013  * See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218
00014  */
00015 #   pragma GCC visibility push(default)
00016 #endif
00017 
00018 #include <cassert>
00019 #include <cstdio>
00020 #include <cstdlib>
00021 #include <ctime>
00022 #include <cstring>
00023 #include <cstdarg>
00024 #include <cmath>
00025 
00026 // STL containers
00027 #include <vector>
00028 #include <map>
00029 #include <string>
00030 #include <set>
00031 #include <list>
00032 #include <deque>
00033 #include <queue>
00034 #include <bitset>
00035 
00036 // Note - not in the original STL, but exists in SGI STL and STLport
00037 // For gcc 4.3 see http://gcc.gnu.org/gcc-4.3/changes.html
00038 #if (OGRE_COMPILER == OGRE_COMPILER_GNUC) && !defined(STLPORT)
00039 #   if OGRE_COMP_VER >= 430
00040 #       include <tr1/unordered_map>
00041 #       include <tr1/unordered_set> 
00042 #   else
00043 #       include <ext/hash_map>
00044 #       include <ext/hash_set>
00045 #   endif
00046 #else
00047 #   include <hash_set>
00048 #   include <hash_map>
00049 #endif 
00050 
00051 // STL algorithms & functions
00052 #include <algorithm>
00053 #include <functional>
00054 #include <limits>
00055 
00056 // C++ Stream stuff
00057 #include <fstream>
00058 #include <iostream>
00059 #include <iomanip>
00060 #include <sstream>
00061 
00062 #ifdef __BORLANDC__
00063 namespace Ogre
00064 {
00065     using namespace std;
00066 }
00067 #endif
00068 
00069 extern "C" {
00070 
00071 #   include <sys/types.h>
00072 #   include <sys/stat.h>
00073 
00074 }
00075 
00076 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
00077 #  undef min
00078 #  undef max
00079 #  if defined( __MINGW32__ )
00080 #    include <unistd.h>
00081 #  endif
00082 #endif
00083 
00084 #if OGRE_PLATFORM == OGRE_PLATFORM_LINUX
00085 extern "C" {
00086 
00087 #   include <unistd.h>
00088 #   include <dlfcn.h>
00089 
00090 }
00091 #endif
00092 
00093 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
00094 extern "C" {
00095 #   include <unistd.h>
00096 #   include <sys/param.h>
00097 #   include <CoreFoundation/CoreFoundation.h>
00098 }
00099 #endif
00100 
00101 #if OGRE_THREAD_SUPPORT
00102 #   undef NOMINMAX
00103 #   define NOMINMAX
00104 #   include <boost/thread/tss.hpp>
00105 #   include <boost/thread/recursive_mutex.hpp>
00106 #   include <boost/thread/condition.hpp>
00107 #   include <boost/thread/thread.hpp>
00108 #endif
00109 
00110 #if defined ( OGRE_GCC_VISIBILITY )
00111 #   pragma GCC visibility pop
00112 #endif
00113 #endif

Copyright © 2008 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sat Apr 11 14:26:48 2009