Don't create a TLS error buffer if we're just clearing the error
Fixes https://github.com/libsdl-org/SDL/issues/7600
This commit is contained in:
parent
240e7747c8
commit
72b7acfe8a
3 changed files with 18 additions and 6 deletions
|
@ -44,6 +44,6 @@ typedef struct SDL_error
|
|||
} SDL_error;
|
||||
|
||||
/* Defined in SDL_thread.c */
|
||||
extern SDL_error *SDL_GetErrBuf(void);
|
||||
extern SDL_error *SDL_GetErrBuf(SDL_bool create);
|
||||
|
||||
#endif /* SDL_error_c_h_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue