Skip to content

Commit

Permalink
today()
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Jun 13, 2024
1 parent c78b70d commit fd36a33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pya2l/extensions/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ inline std::optional<std::string> get_env_var(const std::string &var) {
}
#else
inline std::optional<std::string> get_env_var(const std::string &var) {
auto res = secure_getenv(var.c_str());

#if defined (__APPLE__)
auto res = getenv(var.c_str());
#else
auto res = secure_getenv(var.c_str());
#endif
if (res == nullptr) {
return std::nullopt;
}
Expand Down

0 comments on commit fd36a33

Please sign in to comment.