diff options
author | Damien Miller <djm@mindrot.org> | 2014-04-20 13:21:22 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-04-20 13:21:22 +1000 |
commit | 4f40209aa4060b9c066a2f0d9332ace7b8dfb391 (patch) | |
tree | 3f023418e3afa0ae151339aecae6d72b978014b8 /defines.h | |
parent | 9235a030ad1b16903fb495d81544e0f7c7449523 (diff) |
- djm@cvs.openbsd.org 2014/03/26 04:55:35
[chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c
[misc.h poly1305.h ssh-pkcs11.c]
use __bounded(...) attribute recently added to sys/cdefs.h instead of
longform __attribute__(__bounded(...));
for brevity and a warning free compilation with llvm/clang
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -25,7 +25,7 @@ | |||
25 | #ifndef _DEFINES_H | 25 | #ifndef _DEFINES_H |
26 | #define _DEFINES_H | 26 | #define _DEFINES_H |
27 | 27 | ||
28 | /* $Id: defines.h,v 1.176 2014/01/17 13:12:38 dtucker Exp $ */ | 28 | /* $Id: defines.h,v 1.177 2014/04/20 03:21:23 djm Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -826,4 +826,14 @@ struct winsize { | |||
826 | # define arc4random_stir() | 826 | # define arc4random_stir() |
827 | #endif | 827 | #endif |
828 | 828 | ||
829 | /* __bounded macro */ | ||
830 | #ifndef __bounded | ||
831 | # if __GNUC_PREREQ__(3,3) && !defined(__clang__) | ||
832 | # define __bounded(args) __attribute__ ((__bounded__ args )) | ||
833 | # else | ||
834 | # define __bounded(args) /* delete */ | ||
835 | # endif /* __GNUC_PREREQ__(3,3) && !defined(__clang__) */ | ||
836 | #endif | ||
837 | |||
838 | |||
829 | #endif /* _DEFINES_H */ | 839 | #endif /* _DEFINES_H */ |