svn commit: r1937012 - apr/apr-util/branches/1.7.x/crypto
| Newsgroups | gmane.comp.apache.apr.cvs |
|---|---|
| Message-ID | <178630937063.195601.16994616248464319928@svn03-he-fi> |
Author: rjung Date: Sun Aug 9 21:02:50 2026 New Revision: 1937012 Log: Simplify check for __has_attribute() and apply to second use as well Modified: apr/apr-util/branches/1.7.x/crypto/apr_crypto.c apr/apr-util/branches/1.7.x/crypto/apr_passwd.c Modified: apr/apr-util/branches/1.7.x/crypto/apr_crypto.c ============================================================================== --- apr/apr-util/branches/1.7.x/crypto/apr_crypto.c Sun Aug 9 15:38:33 2026 (r1937011) +++ apr/apr-util/branches/1.7.x/crypto/apr_crypto.c Sun Aug 9 21:02:50 2026 (r1937012) @@ -200,6 +200,10 @@ static volatile const apr_uint32_t optbl * Paper: * https://cr.yp.to/papers/cryptoint-20250424.pdf */ +#ifndef __has_attribute +#define __has_attribute(__x) 0 +#endif + #if __has_attribute(always_inline) __attribute__((always_inline)) #endif Modified: apr/apr-util/branches/1.7.x/crypto/apr_passwd.c ============================================================================== --- apr/apr-util/branches/1.7.x/crypto/apr_passwd.c Sun Aug 9 15:38:33 2026 (r1937011) +++ apr/apr-util/branches/1.7.x/crypto/apr_passwd.c Sun Aug 9 21:02:50 2026 (r1937012) @@ -64,11 +64,9 @@ static volatile const apr_uint32_t optbl * Paper: * https://cr.yp.to/papers/cryptoint-20250424.pdf */ -#if (defined(__xlc__) && !defined(__GNUC__)) #ifndef __has_attribute #define __has_attribute(__x) 0 #endif -#endif #if __has_attribute(always_inline) __attribute__((always_inline))