Sha256: 4f2590a9e5d9e11f394aa6f99d93e3e2562756d71c81e8824f7701d641ba213c

Contents?: true

Size: 1.63 KB

Versions: 13

Compression:

Stored size: 1.63 KB

Contents

//! \file TR1.hpp
//! Includes all parts of C++03 (TR1) that are relevant for Gosu. It makes available the following members of the std::tr1 namespace: array, bind, function, shared_ptr, uint*_t and int*_t.

#ifndef GOSU_TR1_HPP
#define GOSU_TR1_HPP

#include <memory>

#if defined(_MSC_VER) || defined(_LIBCPP_MEMORY)
    #include <array>
    #include <functional>
    namespace std
    {
        namespace tr1
        {
            typedef unsigned char uint8_t;
            typedef unsigned short uint16_t;
            typedef unsigned int uint32_t;
            typedef unsigned long long uint64_t;
            typedef signed char int8_t;
            typedef signed short int16_t;
            typedef signed int int32_t;
            typedef signed long long int64_t;
            
            #ifdef _LIBCPP_MEMORY
            namespace placeholders
            {
                using namespace std::placeholders;
            }
            using std::array;
            using std::bind;
            using std::function;
            using std::shared_ptr;
            #endif
        }        
    }
#else
    #include <tr1/array>
    #include <tr1/memory>
    #include <tr1/functional>
    #if defined(__GNUC__) && (__GNUC__ < 4 || __GNUC_MINOR__ < 2)
        #include <stdint.h>
        namespace std
        {
            namespace tr1
            {
                using ::int8_t; using ::int16_t; using ::int32_t; using ::int64_t;
                using ::uint8_t; using ::uint16_t; using ::uint32_t; using ::uint64_t;
            }
        }
    #else
        #include <tr1/cstdint>
    #endif
#endif

#endif

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gosu-0.9.2-x64-mingw32 Gosu/TR1.hpp
gosu-0.9.2-x86-mingw32 Gosu/TR1.hpp
gosu-0.9.1-x64-mingw32 Gosu/TR1.hpp
gosu-0.9.1-x86-mingw32 Gosu/TR1.hpp
gosu-0.9.0-x86-mingw32 Gosu/TR1.hpp
gosu-0.9.0-x64-mingw32 Gosu/TR1.hpp
gosu-0.8.7.2-x86-mingw32 Gosu/TR1.hpp
gosu-0.8.7.2-x64-mingw32 Gosu/TR1.hpp
gosu-0.8.7.1-x86-mingw32 Gosu/TR1.hpp
gosu-0.8.7.1-x64-mingw32 Gosu/TR1.hpp
gosu-0.8.7-x86-mingw32 Gosu/TR1.hpp
gosu-0.8.7-x64-mingw32 Gosu/TR1.hpp
gosu-0.8.6-x64-mingw32 Gosu/TR1.hpp