public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH] After openssl is upgraded facing __GNUC__ safe_math.h not found issue
@ 2024-12-17  6:50 Kalavakolanu, Hema Anmisha via groups.io
  0 siblings, 0 replies; only message in thread
From: Kalavakolanu, Hema Anmisha via groups.io @ 2024-12-17  6:50 UTC (permalink / raw)
  To: devel; +Cc: Kalavakolanu, Hema Anmisha, Gerd Hoffmann

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4880

Facing the below issue after openssl is upgraded

Edk2\CryptoPkg\Library\OpensslLib\openssl\include\internal/safe_math.h(19):
warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing
with '0' for '#if/#elif'

Cc: Gerd Hoffmann <kraxel@redhat.com>

Signed-off-by: Kalavakolanu Hema Anmisha <hema.anmisha.kalavakolanu@intel.com>
---
 include/internal/safe_math.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/internal/safe_math.h b/include/internal/safe_math.h
index be37e6ab88..ba0b18082f 100644
--- a/include/internal/safe_math.h
+++ b/include/internal/safe_math.h
@@ -15,9 +15,11 @@
 
 # ifndef OPENSSL_NO_BUILTIN_OVERFLOW_CHECKING
 #  ifdef __has_builtin
-#   define has(func) __has_builtin(func)
-#  elif __GNUC__ > 5
-#   define has(func) 1
+#    define has(func) __has_builtin(func)
+#  elif defined(__GNUC__)
+#    if __GNUC__ > 5
+#      define has(func) 1
+#    endif
 #  endif
 # endif /* OPENSSL_NO_BUILTIN_OVERFLOW_CHECKING */
 
-- 
2.26.2.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120926): https://edk2.groups.io/g/devel/message/120926
Mute This Topic: https://groups.io/mt/110222786/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-20 23:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17  6:50 [edk2-devel] [PATCH] After openssl is upgraded facing __GNUC__ safe_math.h not found issue Kalavakolanu, Hema Anmisha via groups.io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox