Main Page
Namespaces
Classes
Files
File List
File Members
Gosu
TR1.hpp
Go to the documentation of this file.
1
2
3
4
#ifndef GOSU_TR1_HPP
5
#define GOSU_TR1_HPP
6
7
#include <memory>
8
9
#if defined(_MSC_VER) || defined(_LIBCPP_MEMORY)
10
#include <array>
11
#include <functional>
12
namespace
std
13
{
14
namespace
tr1
15
{
16
typedef
unsigned
char
uint8_t;
17
typedef
unsigned
short
uint16_t;
18
typedef
unsigned
int
uint32_t;
19
typedef
unsigned
long
long
uint64_t;
20
typedef
signed
char
int8_t;
21
typedef
signed
short
int16_t;
22
typedef
signed
int
int32_t;
23
typedef
signed
long
long
int64_t;
24
25
#ifdef _LIBCPP_MEMORY
26
using
std::array;
27
using
std::bind;
28
using
std::function;
29
using
std::shared_ptr;
30
#endif
31
}
32
}
33
#else
34
#include <tr1/array>
35
#include <tr1/memory>
36
#include <tr1/functional>
37
#if defined(__GNUC__) && (__GNUC__ < 4 || __GNUC_MINOR__ < 2)
38
#include <stdint.h>
39
namespace
std
40
{
41
namespace
tr1
42
{
43
using ::int8_t; using ::int16_t; using ::int32_t; using ::int64_t;
44
using ::uint8_t; using ::uint16_t; using ::uint32_t; using ::uint64_t;
45
}
46
}
47
#else
48
#include <tr1/cstdint>
49
#endif
50
#endif
51
52
#endif