add version check to SDL_MALLOC macro (for correctness)

main
Ozkan Sezer 2023-02-03 17:40:40 +03:00
parent 7d439b87b0
commit e7ea47a1b4
1 changed files with 3 additions and 3 deletions

View File

@ -170,12 +170,12 @@
#endif /* SDL_FALLTHROUGH not defined */
#ifndef SDL_MALLOC
#if defined(__GNUC__)
#if defined(__GNUC__) && (__GNUC__ >= 3)
#define SDL_MALLOC __attribute__((malloc))
/* FIXME
/** FIXME
#elif defined(_MSC_VER)
#define SDL_MALLOC __declspec(allocator) __desclspec(restrict)
*/
**/
#else
#define SDL_MALLOC
#endif