mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-11-16 18:25:57 +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>
|
||||
|
||||
using namespace Hyprlang;
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <crt_externs.h>
|
||||
#define environ (*_NSGetEnviron())
|
||||
#else
|
||||
extern "C" char** environ;
|
||||
#endif
|
||||
|
||||
// defines
|
||||
inline constexpr const char* ANONYMOUS_KEY = "__hyprlang_internal_anonymous_key";
|
||||
|
|
Loading…
Reference in a new issue