mirror of https://github.com/libsdl-org/SDL
SDL_dynapi.c: add extern "C" guards, just in case..
This commit is contained in:
parent
8bdc25f4e4
commit
2ec9a20204
|
@ -50,6 +50,10 @@
|
||||||
sparingly. */
|
sparingly. */
|
||||||
#define SDL_DYNAPI_VERSION 2
|
#define SDL_DYNAPI_VERSION 2
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
static void SDL_InitDynamicAPI(void);
|
static void SDL_InitDynamicAPI(void);
|
||||||
|
|
||||||
/* BE CAREFUL CALLING ANY SDL CODE IN HERE, IT WILL BLOW UP.
|
/* BE CAREFUL CALLING ANY SDL CODE IN HERE, IT WILL BLOW UP.
|
||||||
|
@ -358,6 +362,10 @@ SDL_DYNAPI_entry(Uint32 apiver, void *table, Uint32 tablesize)
|
||||||
return initialize_jumptable(apiver, table, tablesize);
|
return initialize_jumptable(apiver, table, tablesize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Obviously we can't use SDL_LoadObject() to load SDL. :) */
|
/* Obviously we can't use SDL_LoadObject() to load SDL. :) */
|
||||||
/* Also obviously, we never close the loaded library. */
|
/* Also obviously, we never close the loaded library. */
|
||||||
#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
|
||||||
|
@ -412,11 +420,16 @@ static void dynapi_warn(const char *msg)
|
||||||
/* This is not declared in any header, although it is shared between some
|
/* This is not declared in any header, although it is shared between some
|
||||||
parts of SDL, because we don't want anything calling it without an
|
parts of SDL, because we don't want anything calling it without an
|
||||||
extremely good reason. */
|
extremely good reason. */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
extern SDL_NORETURN void SDL_ExitProcess(int exitcode);
|
||||||
#if defined(__WATCOMC__)
|
#if defined(__WATCOMC__)
|
||||||
void SDL_ExitProcess(int exitcode);
|
|
||||||
#pragma aux SDL_ExitProcess aborts;
|
#pragma aux SDL_ExitProcess aborts;
|
||||||
#endif
|
#endif
|
||||||
SDL_NORETURN void SDL_ExitProcess(int exitcode);
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void SDL_InitDynamicAPILocked(void)
|
static void SDL_InitDynamicAPILocked(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue