diff options
author | Damien Miller <djm@mindrot.org> | 2014-05-15 14:37:03 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-05-15 14:37:03 +1000 |
commit | 686c7d9ee6f44b2be4128d7860b6b37adaeba733 (patch) | |
tree | 7f6a31d5d100a462e51a122189d3fc1ab2117d12 /defines.h | |
parent | 294c58a007cfb2f3bddc4fc3217e255857ffb9bf (diff) |
- djm@cvs.openbsd.org 2014/05/02 03:27:54
[chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c]
[misc.h poly1305.h ssh-pkcs11.c defines.h]
revert __bounded change; it causes way more problems for portable than
it solves; pointed out by dtucker@
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 20 |
1 files changed, 1 insertions, 19 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.178 2014/04/30 16:24:35 dtucker Exp $ */ | 28 | /* $Id: defines.h,v 1.179 2014/05/15 04:37:04 djm Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -826,22 +826,4 @@ struct winsize { | |||
826 | # define arc4random_stir() | 826 | # define arc4random_stir() |
827 | #endif | 827 | #endif |
828 | 828 | ||
829 | /* Macro to test if we're using a specific version of gcc or later. */ | ||
830 | #if defined(__GNUC__) && !defined(__GNUC_PREREQ__) | ||
831 | #define __GNUC_PREREQ__(ma, mi) \ | ||
832 | ((__GNUC__ > (ma)) || (__GNUC__ == (ma) && __GNUC_MINOR__ >= (mi))) | ||
833 | #else | ||
834 | #define __GNUC_PREREQ__(ma, mi) 0 | ||
835 | #endif | ||
836 | |||
837 | /* __bounded macro */ | ||
838 | #ifndef __bounded | ||
839 | # if defined(__GNUC__) && __GNUC_PREREQ__(3,3) && !defined(__clang__) | ||
840 | # define __bounded(args) __attribute__ ((__bounded__ args )) | ||
841 | # else | ||
842 | # define __bounded(args) /* delete */ | ||
843 | # endif /* __GNUC_PREREQ__(3,3) && !defined(__clang__) */ | ||
844 | #endif | ||
845 | |||
846 | |||
847 | #endif /* _DEFINES_H */ | 829 | #endif /* _DEFINES_H */ |