Explicitly specify the SDL API calling convention (C by default)

This commit is contained in:
Sam Lantinga
2002-04-11 14:35:16 +00:00
parent 4c44aed618
commit 8b5bf373be
24 changed files with 200 additions and 195 deletions

View File

@@ -31,6 +31,11 @@
#endif
#define _begin_code_h
/* Make sure the correct platform symbols are defined */
#if !defined(WIN32) && defined(_WIN32)
#define WIN32
#endif /* Windows */
/* Some compilers use a special export keyword */
#ifndef DECLSPEC
# ifdef __BEOS__
@@ -56,6 +61,15 @@
# endif
#endif
/* By default SDL uses the C calling convention */
#ifndef SDLCALL
#ifdef WIN32
#define SDLCALL __cdecl
#else
#define SDLCALL
#endif
#endif /* SDLCALL */
/* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */
#ifdef __SYMBIAN32__
#undef DECLSPEC