mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-14 15:05:39 +02:00
Define __dead2 and __pure2 to actual gcc attributes if possible
This commit is contained in:
@@ -50,11 +50,19 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __dead2
|
#ifndef __dead2
|
||||||
# define __dead2
|
# if LIBBSD_GCC_VERSION >= 0x0207
|
||||||
|
# define __dead2 __attribute__((__noreturn__))
|
||||||
|
# else
|
||||||
|
# define __dead2
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __pure2
|
#ifndef __pure2
|
||||||
# define __pure2
|
# if LIBBSD_GCC_VERSION >= 0x0207
|
||||||
|
# define __pure2 __attribute__((__const__))
|
||||||
|
# else
|
||||||
|
# define __pure2
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Linux headers define a struct with a member names __unused.
|
/* Linux headers define a struct with a member names __unused.
|
||||||
|
Reference in New Issue
Block a user