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);