memgraph/utils/platform.hpp

17 lines
297 B
C++
Raw Normal View History

2015-06-22 08:26:41 +08:00
#ifndef MEMGRAPH_UTILS_PLATFORM_HPP
#define MEMGRAPH_UTILS_PLATFORM_HPP
#include <cstdint>
// is there a better way?
#if UINTPTR_MAX == 0xffffffff
#define MEMGRAPH32
#elif UINTPTR_MAX == 0xffffffffffffffff
#define MEMGRAPH64
#else
#error Unrecognized platform (neither 32 or 64)
#endif
#endif