14 #ifndef STXXL_TYPES_HEADER
15 #define STXXL_TYPES_HEADER
17 #ifdef STXXL_BOOST_CONFIG
18 #include <boost/config.hpp>
21 #include <stxxl/bits/namespace.h>
24 __STXXL_BEGIN_NAMESPACE
27 #ifdef STXXL_BOOST_CONFIG
29 typedef __int64 int64;
30 typedef unsigned __int64 uint64;
32 typedef long long int int64;
33 typedef unsigned long long int uint64;
36 typedef long long int int64;
37 typedef unsigned long long int uint64;
42 enum { my_pointer_size =
sizeof(
void *) };
44 template <
int PtrSize>
45 struct choose_int_types
49 struct choose_int_types<4>
52 typedef unsigned unsigned_type;
56 struct choose_int_types<8>
58 typedef int64 int_type;
59 typedef uint64 unsigned_type;
62 typedef choose_int_types<my_pointer_size>::int_type int_type;
63 typedef choose_int_types<my_pointer_size>::unsigned_type unsigned_type;
65 typedef unsigned_type internal_size_type;
66 typedef uint64 external_size_type;
70 #endif // !STXXL_TYPES_HEADER