Fixed bug 3745 - specify SDLCALL as the calling convention for API callbacks
Patches contributed by Ozkan Sezer
This commit is contained in:
parent
54ffe889c5
commit
520aaf19a4
23 changed files with 40 additions and 38 deletions
|
@ -50,7 +50,7 @@ SDL_TLSGet(SDL_TLSID id)
|
|||
}
|
||||
|
||||
int
|
||||
SDL_TLSSet(SDL_TLSID id, const void *value, void (*destructor)(void *))
|
||||
SDL_TLSSet(SDL_TLSID id, const void *value, void (SDLCALL *destructor)(void *))
|
||||
{
|
||||
SDL_TLSData *storage;
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ typedef struct {
|
|||
unsigned int limit;
|
||||
struct {
|
||||
void *data;
|
||||
void (*destructor)(void*);
|
||||
void (SDLCALL *destructor)(void*);
|
||||
} array[1];
|
||||
} SDL_TLSData;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue