mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-22 10:58:47 +08:00
try fix bug 'use of undeclared identifier 'environ'' on MacOS
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#ifndef __NASAL_BUILTIN_H__
|
||||
#define __NASAL_BUILTIN_H__
|
||||
|
||||
#if defined __APPLE__
|
||||
#include <crt_externs.h>
|
||||
#define environ (*_NSGetEnviron())
|
||||
#endif
|
||||
/*
|
||||
builtin functions must be called inside a function like this:
|
||||
var print=func(elems...){
|
||||
|
||||
Reference in New Issue
Block a user