#ifndef MSP_DATAFILE_TYPE_H_
#define MSP_DATAFILE_TYPE_H_
+#include <msp/core/inttypes.h>
#include <msp/strings/lexicalcast.h>
namespace Msp {
struct IntType
{
static const char signature = 'i';
-#ifdef MSVC
- typedef __int64 Store;
-#else
- typedef long long int Store;
-#endif
+ typedef Int64 Store;
typedef Store Load;
};
template<>
struct TypeInfo<unsigned long int, false>: IntType { };
-#ifdef MSVC
+#if defined(_MSC_VER)
template<>
struct TypeInfo<__int64, false>: IntType { };
template<>
struct TypeInfo<unsigned __int64, false>: IntType { };
-#else
+#elif defined(__GNUC__)
template<>
struct TypeInfo<long long int, false>: IntType { };