2008-09-05 17:20:50 -05:00
|
|
|
/*
|
|
|
|
* moo-environ.h
|
|
|
|
*
|
2010-11-07 01:20:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@sourceforge.net>
|
2008-09-05 17:20:50 -05:00
|
|
|
*
|
|
|
|
* This file is part of medit. medit is free software; you can
|
|
|
|
* redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU Lesser General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2.1 of the License,
|
|
|
|
* or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2007-11-15 22:23:41 -06:00
|
|
|
#ifndef MOO_ENVIRON_H
|
|
|
|
#define MOO_ENVIRON_H
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#if defined(MOO_OS_DARWIN)
|
|
|
|
#include <crt_externs.h>
|
|
|
|
#define environ (*_NSGetEnviron())
|
2009-11-01 12:44:46 -08:00
|
|
|
#elif !defined(MOO_OS_WIN32)
|
2007-11-15 22:23:41 -06:00
|
|
|
extern char **environ;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* MOO_ENVIRON_H */
|