mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
include: add SDL_RESTRICT for restricted pointer aliasing
This commit is contained in:
committed by
Anonymous Maarten
parent
2d4eb29c37
commit
55934bc85e
@@ -225,3 +225,13 @@
|
||||
#define SDL_ALLOC_SIZE2(p1, p2)
|
||||
#endif
|
||||
#endif /* SDL_ALLOC_SIZE2 not defined */
|
||||
|
||||
#ifndef SDL_RESTRICT
|
||||
#if defined(__GNUC__)
|
||||
#define SDL_RESTRICT __restrict__
|
||||
#elif defined(_MSC_VER)
|
||||
#define SDL_RESTRICT __restrict
|
||||
#else
|
||||
#define SDL_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user