]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Replace __attribute__((malloc)) with __attribute__((__malloc__)) in macros.h
authorAnis-cpu-13 <anisaityacoub7@gmail.com>
Tue, 2 May 2023 12:59:11 +0000 (14:59 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 25 May 2023 15:53:52 +0000 (17:53 +0200)
Fix macro attribute conflict with cmocka
Fixes #20776

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20869)

(cherry picked from commit 0bf7e94c10f1b00510b8a36cdcbedc02a66468be)

include/openssl/macros.h

index bcd42ec737be844de2df75012aef15c9252003d1..aa7fbcc215a7650c710566554a63eec7d876770a 100644 (file)
 
 # ifndef OSSL_CRYPTO_ALLOC
 #  if defined(__GNUC__)
-#   define OSSL_CRYPTO_ALLOC __attribute__((malloc))
+#   define OSSL_CRYPTO_ALLOC __attribute__((__malloc__))
 #  elif defined(_MSC_VER)
 #   define OSSL_CRYPTO_ALLOC __declspec(restrict)
 #  else