diff --git a/src/config.cpp b/src/config.cpp index dd4a0ce..94c908a 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -10,7 +10,13 @@ #include using namespace Hyprlang; + +#ifdef __APPLE__ +#include +#define environ (*_NSGetEnviron()) +#else extern "C" char** environ; +#endif // defines inline constexpr const char* ANONYMOUS_KEY = "__hyprlang_internal_anonymous_key";