memgraph/utils/platform.hpp
2015-06-22 02:26:41 +02:00

17 lines
297 B
C++

#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