comparison include/SDL_getenv.h @ 1336:3692456e7b0f

Use SDL_ prefixed versions of C library functions. FIXME: Change #include <stdlib.h> to #include "SDL_stdlib.h" Change #include <string.h> to #include "SDL_string.h" Make sure nothing else broke because of this...
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 06:59:48 +0000
parents 450721ad5436
children 7ba544e2888d
comparison
equal deleted inserted replaced
1335:c39265384763 1336:3692456e7b0f
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 22
23 #ifndef _SDL_getenv_h 23 #include "SDL_stdlib.h"
24 #define _SDL_getenv_h
25
26 #include "SDL_config.h"
27
28 #ifdef HAVE_STDLIB_H
29 #include <stdlib.h>
30 #endif
31
32 #include "begin_code.h"
33 /* Set up for C function definitions, even when using C++ */
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 #ifdef HAVE_GETENV
39 #define SDL_getenv getenv
40 #else
41 #define getenv SDL_getenv
42 extern DECLSPEC char * SDLCALL SDL_getenv(const char *name);
43 #endif
44
45 #ifdef HAVE_PUTENV
46 #define SDL_putenv putenv
47 #else
48 #define putenv SDL_putenv
49 extern DECLSPEC int SDLCALL SDL_putenv(const char *variable);
50 #endif
51
52 /* Ends C function definitions when using C++ */
53 #ifdef __cplusplus
54 }
55 #endif
56 #include "close_code.h"
57
58 #endif /* _SDL_getenv_h */