medit/moo/mooutils/moo-environ.h
2008-09-05 17:20:50 -05:00

29 lines
784 B
C

/*
* moo-environ.h
*
* Copyright (C) 2004-2008 by Yevgen Muntyan <muntyan@tamu.edu>
*
* 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/>.
*/
#ifndef MOO_ENVIRON_H
#define MOO_ENVIRON_H
#include <config.h>
#if defined(MOO_OS_DARWIN)
#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#elif !defined(MOO_OS_MINGW)
extern char **environ;
#endif
#endif /* MOO_ENVIRON_H */