2006-01-27 08:47:15 +00:00
|
|
|
/*
|
|
|
|
SDL - Simple DirectMedia Layer
|
2006-02-01 06:32:25 +00:00
|
|
|
Copyright (C) 1997-2006 Sam Lantinga
|
2006-01-27 08:47:15 +00:00
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2006-02-01 06:32:25 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2006-01-27 08:47:15 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2006-02-01 06:32:25 +00:00
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
2006-01-27 08:47:15 +00:00
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2006-02-01 06:32:25 +00:00
|
|
|
Lesser General Public License for more details.
|
2006-01-27 08:47:15 +00:00
|
|
|
|
2006-02-01 06:32:25 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2006-01-27 08:47:15 +00:00
|
|
|
|
|
|
|
Sam Lantinga
|
|
|
|
slouken@libsdl.org
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SDL_getenv_h
|
|
|
|
#define _SDL_getenv_h
|
2001-04-26 16:45:43 +00:00
|
|
|
|
2006-02-06 08:28:51 +00:00
|
|
|
#include "SDL_config.h"
|
|
|
|
|
|
|
|
#ifdef HAVE_STDLIB_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
#endif
|
|
|
|
|
2001-04-26 16:45:43 +00:00
|
|
|
#include "begin_code.h"
|
|
|
|
/* Set up for C function definitions, even when using C++ */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-02-06 08:28:51 +00:00
|
|
|
#ifdef HAVE_GETENV
|
|
|
|
#define SDL_getenv getenv
|
|
|
|
#else
|
|
|
|
#define getenv SDL_getenv
|
|
|
|
extern DECLSPEC char * SDLCALL SDL_getenv(const char *name);
|
2006-01-27 08:47:15 +00:00
|
|
|
#endif
|
|
|
|
|
2006-02-06 08:28:51 +00:00
|
|
|
#ifdef HAVE_PUTENV
|
|
|
|
#define SDL_putenv putenv
|
|
|
|
#else
|
|
|
|
#define putenv SDL_putenv
|
2002-04-11 14:35:16 +00:00
|
|
|
extern DECLSPEC int SDLCALL SDL_putenv(const char *variable);
|
2006-02-06 08:28:51 +00:00
|
|
|
#endif
|
2006-01-27 08:47:15 +00:00
|
|
|
|
2001-04-26 16:45:43 +00:00
|
|
|
/* Ends C function definitions when using C++ */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#include "close_code.h"
|
|
|
|
|
2006-01-27 08:47:15 +00:00
|
|
|
#endif /* _SDL_getenv_h */
|