From ade4e87d6f68252f2b1e3c9a5d231b6c8e8ac4e9 Mon Sep 17 00:00:00 2001 From: Thad House Date: Sun, 28 Aug 2016 19:17:31 -0700 Subject: [PATCH] Fixes support for MSVC 2013 (#104) --- include/ntcore_cpp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ntcore_cpp.h b/include/ntcore_cpp.h index 48639a73e5..3376c90290 100644 --- a/include/ntcore_cpp.h +++ b/include/ntcore_cpp.h @@ -215,7 +215,11 @@ bool NotifierDestroyed(); * Remote Procedure Call Functions */ +#if defined(_MSC_VER) && _MSC_VER < 1900 +const double kTimeout_Indefinite = -1; +#else constexpr double kTimeout_Indefinite = -1; +#endif void SetRpcServerOnStart(std::function on_start); void SetRpcServerOnExit(std::function on_exit);