diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b0f7f023..4fa213df6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,7 +149,6 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") add_definitions(-DNOMINMAX) # avoid min and max macros that can break compilation add_definitions(-D_USE_MATH_DEFINES) # define M_PI add_definitions(-D_WIN32_WINNT=0x0501) - set_target_properties(OSRM PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64") endif() # disable partitioning of LTO process when possible (fixes Debian issues) diff --git a/typedefs.h b/typedefs.h index 3934a161d..db6e7fbc5 100644 --- a/typedefs.h +++ b/typedefs.h @@ -42,9 +42,9 @@ typedef unsigned int NodeID; typedef unsigned int EdgeID; typedef int EdgeWeight; -constexpr NodeID SPECIAL_NODEID = std::numeric_limits::max(); -constexpr EdgeID SPECIAL_EDGEID = std::numeric_limits::max(); -constexpr unsigned INVALID_NAMEID = std::numeric_limits::max(); -constexpr EdgeWeight INVALID_EDGE_WEIGHT = std::numeric_limits::max(); +static const NodeID SPECIAL_NODEID = std::numeric_limits::max(); +static const EdgeID SPECIAL_EDGEID = std::numeric_limits::max(); +static const unsigned INVALID_NAMEID = std::numeric_limits::max(); +static const EdgeWeight INVALID_EDGE_WEIGHT = std::numeric_limits::max(); #endif /* TYPEDEFS_H */