TR1.hpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 #ifndef GOSU_TR1_HPP
00005 #define GOSU_TR1_HPP
00006 
00007 #ifdef _MSC_VER
00008     #include <array>
00009     #include <memory>
00010     #include <functional>
00011     namespace std
00012     {
00013         namespace tr1
00014         {
00015             typedef unsigned char        uint8_t;
00016             typedef unsigned short       uint16_t;
00017             typedef unsigned int         uint32_t;
00018             typedef unsigned long long   uint64_t;
00019             typedef signed char          int8_t;
00020             typedef signed short         int16_t;
00021             typedef signed int           int32_t;
00022             typedef signed long long     int64_t;
00023         }
00024     }
00025 #else
00026     #include <tr1/array>
00027     #include <tr1/memory>
00028     #include <tr1/functional>
00029     #if defined(__GNUC__) && (__GNUC__ < 4 || __GNUC_MINOR__ < 2)
00030         #include <stdint.h>
00031         namespace std
00032         {
00033             namespace tr1
00034             {
00035                 using ::int8_t;  using ::int16_t;  using ::int32_t;  using ::int64_t;
00036                 using ::uint8_t; using ::uint16_t; using ::uint32_t; using ::uint64_t;
00037             }
00038         }
00039     #else
00040         #include <tr1/cstdint>
00041     #endif
00042 #endif
00043 
00044 #endif