Skip to content

Commit

Permalink
safe_math.h: Check if __GNUC__ is defined
Browse files Browse the repository at this point in the history
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'

CLA: trivial

Reviewed-by: Gerd Hoffmann <[email protected]>

Signed-off-by: Kalavakolanu Hema Anmisha <[email protected]>

Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Tom Cosgrove <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#26204)
  • Loading branch information
HemaAnmisha authored and t8m committed Dec 19, 2024
1 parent 009fa4f commit 53b3456
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/internal/safe_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
# ifndef OPENSSL_NO_BUILTIN_OVERFLOW_CHECKING
# ifdef __has_builtin
# define has(func) __has_builtin(func)
# elif __GNUC__ > 5
# define has(func) 1
# elif defined(__GNUC__)
# if __GNUC__ > 5
# define has(func) 1
# endif
# endif
# endif /* OPENSSL_NO_BUILTIN_OVERFLOW_CHECKING */

Expand Down

0 comments on commit 53b3456

Please sign in to comment.