1 #ifndef RBIMPL_ATTR_RESTRICT_H
2 #define RBIMPL_ATTR_RESTRICT_H
31 #if RBIMPL_COMPILER_SINCE(MSVC, 14, 0, 0)
32 # define RBIMPL_ATTR_RESTRICT() __declspec(re ## strict)
34 #elif RBIMPL_HAS_ATTRIBUTE(malloc)
35 # define RBIMPL_ATTR_RESTRICT() __attribute__((__malloc__))
37 #elif RBIMPL_COMPILER_SINCE(SunPro, 5, 10, 0)
38 # define RBIMPL_ATTR_RESTRICT() _Pragma("returns_new_memory")
41 # define RBIMPL_ATTR_RESTRICT()
Defines RBIMPL_HAS_ATTRIBUTE.
Defines RBIMPL_COMPILER_SINCE.