*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Fri, 27 Jan 2006 08:47:15 +0000
changeset 1277088b806d877e
parent 1276 ca3718c215af
child 1278 693dd6657b35
*** empty log message ***
include/SDL_getenv.h
     1.1 --- a/include/SDL_getenv.h	Fri Jan 27 07:02:19 2006 +0000
     1.2 +++ b/include/SDL_getenv.h	Fri Jan 27 08:47:15 2006 +0000
     1.3 @@ -1,3 +1,38 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997-2004 Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Library General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Library General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Library General Public
    1.19 +    License along with this library; if not, write to the Free
    1.20 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@libsdl.org
    1.24 +*/
    1.25 +
    1.26 +#ifdef SAVE_RCSID
    1.27 +static char rcsid =
    1.28 + "@(#) $Id$";
    1.29 +#endif
    1.30 +
    1.31 +#ifndef _SDL_getenv_h
    1.32 +#define _SDL_getenv_h
    1.33 +
    1.34 +#include "begin_code.h"
    1.35 +/* Set up for C function definitions, even when using C++ */
    1.36 +#ifdef __cplusplus
    1.37 +extern "C" {
    1.38 +#endif
    1.39  
    1.40  /* Not all environments have a working getenv()/putenv() */
    1.41  
    1.42 @@ -7,12 +42,6 @@
    1.43  
    1.44  #ifdef NEED_SDL_GETENV
    1.45  
    1.46 -#include "begin_code.h"
    1.47 -/* Set up for C function definitions, even when using C++ */
    1.48 -#ifdef __cplusplus
    1.49 -extern "C" {
    1.50 -#endif
    1.51 -
    1.52  /* Put a variable of the form "name=value" into the environment */
    1.53  extern DECLSPEC int SDLCALL SDL_putenv(const char *variable);
    1.54  #define putenv(X)   SDL_putenv(X)
    1.55 @@ -21,10 +50,12 @@
    1.56  extern DECLSPEC char * SDLCALL SDL_getenv(const char *name);
    1.57  #define getenv(X)     SDL_getenv(X)
    1.58  
    1.59 +#endif /* NEED_GETENV */
    1.60 +
    1.61  /* Ends C function definitions when using C++ */
    1.62  #ifdef __cplusplus
    1.63  }
    1.64  #endif
    1.65  #include "close_code.h"
    1.66  
    1.67 -#endif /* NEED_GETENV */
    1.68 +#endif /* _SDL_getenv_h */