mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-12-22 09:59:48 +01:00
config.cpp: fix environ for Apple (#34)
This commit is contained in:
parent
a2f3942114
commit
b3e430f81f
1 changed files with 6 additions and 0 deletions
|
@ -10,7 +10,13 @@
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
using namespace Hyprlang;
|
using namespace Hyprlang;
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <crt_externs.h>
|
||||||
|
#define environ (*_NSGetEnviron())
|
||||||
|
#else
|
||||||
extern "C" char** environ;
|
extern "C" char** environ;
|
||||||
|
#endif
|
||||||
|
|
||||||
// defines
|
// defines
|
||||||
inline constexpr const char* ANONYMOUS_KEY = "__hyprlang_internal_anonymous_key";
|
inline constexpr const char* ANONYMOUS_KEY = "__hyprlang_internal_anonymous_key";
|
||||||
|
|
Loading…
Reference in a new issue