Mercurial > sdl-ios-xcode
comparison include/SDL_getenv.h @ 337:9154ec9ca3d2
Explicitly specify the SDL API calling convention (C by default)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 11 Apr 2002 14:35:16 +0000 |
parents | 74212992fb08 |
children | f098b247299d |
comparison
equal
deleted
inserted
replaced
336:745873ea091f | 337:9154ec9ca3d2 |
---|---|
12 #ifdef __cplusplus | 12 #ifdef __cplusplus |
13 extern "C" { | 13 extern "C" { |
14 #endif | 14 #endif |
15 | 15 |
16 /* Put a variable of the form "name=value" into the environment */ | 16 /* Put a variable of the form "name=value" into the environment */ |
17 extern DECLSPEC int SDL_putenv(const char *variable); | 17 extern DECLSPEC int SDLCALL SDL_putenv(const char *variable); |
18 #define putenv(X) SDL_putenv(X) | 18 #define putenv(X) SDL_putenv(X) |
19 | 19 |
20 /* Retrieve a variable named "name" from the environment */ | 20 /* Retrieve a variable named "name" from the environment */ |
21 extern DECLSPEC char *SDL_getenv(const char *name); | 21 extern DECLSPEC char * SDLCALL SDL_getenv(const char *name); |
22 #define getenv(X) SDL_getenv(X) | 22 #define getenv(X) SDL_getenv(X) |
23 | 23 |
24 /* Ends C function definitions when using C++ */ | 24 /* Ends C function definitions when using C++ */ |
25 #ifdef __cplusplus | 25 #ifdef __cplusplus |
26 } | 26 } |