Changeset - r24596:eddf98238034
[Not reviewed]
master
0 1 0
milek7 - 4 years ago 2021-01-08 00:57:58
me@milek7.pl
Codechange: Check if access __attribute__ is supported before trying to use it.
1 file changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/stdafx.h
Show inline comments
 
@@ -136,8 +136,12 @@
 
#	endif
 
#endif /* __GNUC__ || __clang__ */
 

	
 
#if defined(__GNUC__)
 
#	define NOACCESS(args) __attribute__ ((access (none, args)))
 
#if defined __has_attribute
 
#	if __has_attribute (access)
 
#		define NOACCESS(args) __attribute__ ((access (none, args)))
 
#	else
 
#		define NOACCESS(args)
 
#	endif
 
#else
 
#	define NOACCESS(args)
 
#endif
0 comments (0 inline, 0 general)