mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 20:08:13 +00:00
add version check to SDL_MALLOC macro (for correctness)
This commit is contained in:
@@ -170,12 +170,12 @@
|
|||||||
#endif /* SDL_FALLTHROUGH not defined */
|
#endif /* SDL_FALLTHROUGH not defined */
|
||||||
|
|
||||||
#ifndef SDL_MALLOC
|
#ifndef SDL_MALLOC
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__) && (__GNUC__ >= 3)
|
||||||
#define SDL_MALLOC __attribute__((malloc))
|
#define SDL_MALLOC __attribute__((malloc))
|
||||||
/* FIXME
|
/** FIXME
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define SDL_MALLOC __declspec(allocator) __desclspec(restrict)
|
#define SDL_MALLOC __declspec(allocator) __desclspec(restrict)
|
||||||
*/
|
**/
|
||||||
#else
|
#else
|
||||||
#define SDL_MALLOC
|
#define SDL_MALLOC
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user