}
}
- UInt64 encoded = bf.compose(float_precision);
+ uint64_t encoded = bf.compose(float_precision);
for(unsigned i=float_precision/8; i--; )
out.put((encoded>>(i*8))&0xFF);
}
#ifndef MSP_DATAFILE_TYPE_H_
#define MSP_DATAFILE_TYPE_H_
-#include <msp/core/inttypes.h>
+#include <cstdint>
#include <msp/core/meta.h>
#include <msp/strings/lexicalcast.h>
struct IntType
{
static const char signature = 'i';
- typedef Int64 Store;
+ typedef std::int64_t Store;
typedef Store Load;
};
template<>
struct TypeInfo<unsigned long int, false>: IntType { };
-#if defined(_MSC_VER)
-template<>
-struct TypeInfo<__int64, false>: IntType { };
-
-template<>
-struct TypeInfo<unsigned __int64, false>: IntType { };
-#elif defined(__GNUC__)
template<>
struct TypeInfo<long long int, false>: IntType { };
template<>
struct TypeInfo<unsigned long long int, false>: IntType { };
-#endif
template<>
struct TypeInfo<float, false>: FloatType { };