diff --git a/src/umpire/ResourceManager.cpp b/src/umpire/ResourceManager.cpp index ee58038a6..6ba4c699c 100644 --- a/src/umpire/ResourceManager.cpp +++ b/src/umpire/ResourceManager.cpp @@ -64,7 +64,7 @@ ResourceManager::ResourceManager() { UMPIRE_LOG(Debug, "() entering"); - const char* env_enable_log{getenv("UMPIRE_LOG_LEVEL")}; + const char* env_enable_log{std::getenv("UMPIRE_LOG_LEVEL")}; const bool enable_log{env_enable_log != nullptr}; util::initialize_io(enable_log); diff --git a/src/umpire/event/event.hpp b/src/umpire/event/event.hpp index b61502f0e..1daac7467 100644 --- a/src/umpire/event/event.hpp +++ b/src/umpire/event/event.hpp @@ -8,6 +8,7 @@ #define UMPIRE_event_HPP #include +#include #include #include #include @@ -57,9 +58,9 @@ namespace umpire { namespace event { namespace { -static const char* replay_env{getenv("UMPIRE_REPLAY")}; +static const char* replay_env{std::getenv("UMPIRE_REPLAY")}; static const bool enable_replay{(replay_env != NULL)}; -static const char* event_env{getenv("UMPIRE_EVENTS")}; +static const char* event_env{std::getenv("UMPIRE_EVENTS")}; static const bool enable_event{(event_env != NULL)}; static const bool event_build_enabled{enable_replay || enable_event}; } // namespace diff --git a/src/umpire/util/Logger.cpp b/src/umpire/util/Logger.cpp index 3c1a4d14f..e95cbe297 100644 --- a/src/umpire/util/Logger.cpp +++ b/src/umpire/util/Logger.cpp @@ -33,7 +33,7 @@ Logger::Logger() noexcept m_is_enabled{false, false, false, false} { message::Level level{defaultLevel}; - const char* enval = getenv(env_name); + const char* enval = std::getenv(env_name); if (enval) { for (int i = 0; i < message::Num_Levels; ++i) { diff --git a/src/umpire/util/Macros.hpp b/src/umpire/util/Macros.hpp index fc3ee0805..a7ad60756 100644 --- a/src/umpire/util/Macros.hpp +++ b/src/umpire/util/Macros.hpp @@ -36,7 +36,7 @@ plog = axom::slic::Logger::getActiveLogger(); \ axom::slic::message::Level level; \ level = axom::slic::message::Level::Error; \ - char* enval = getenv(env_name.c_str()); \ + char* enval = std::getenv(env_name.c_str()); \ if (enval != NULL) { \ for (int i = 0; i < axom::slic::message::Level::Num_Levels; ++i) { \ if (strcasecmp(enval, axom::slic::message::MessageLevelName[i].c_str()) == 0) { \ diff --git a/src/umpire/util/backtrace.inl b/src/umpire/util/backtrace.inl index 1f4abf333..61ba90f16 100644 --- a/src/umpire/util/backtrace.inl +++ b/src/umpire/util/backtrace.inl @@ -41,7 +41,7 @@ bool backtrace_enabled() static bool initialized{false}; if (!initialized) { - const char* enval{getenv("UMPIRE_BACKTRACE")}; + const char* enval{std::getenv("UMPIRE_BACKTRACE")}; if (enval) { std::string env_str{enval}; std::transform(env_str.begin(), env_str.end(), env_str.begin(), ::toupper); diff --git a/src/umpire/util/io.cpp b/src/umpire/util/io.cpp index 006886f18..62b726a67 100644 --- a/src/umpire/util/io.cpp +++ b/src/umpire/util/io.cpp @@ -7,8 +7,7 @@ #include "umpire/util/io.hpp" -#include // for getenv() - +#include #include #include #include