Undef ASSERT before defining it to ensure that no previous definition

has sneaked in through included files.

Signed-off-by: Ouss4 <abdelatif.guettouche@gmail.com>
This commit is contained in:
Ouss4 2020-08-11 16:07:09 +01:00
parent 0ca6d38bc3
commit e0b2687a2d
4 changed files with 12 additions and 0 deletions

View file

@ -516,6 +516,9 @@ static const size_t test_lengths[2] =
375U
};
/* Make sure no other definition is already present. */
#undef ASSERT
#define ASSERT( cond, args ) \
do \
{ \

View file

@ -472,6 +472,9 @@ static const unsigned char test_mac[1][16] =
}
};
/* Make sure no other definition is already present. */
#undef ASSERT
#define ASSERT( cond, args ) \
do \
{ \

View file

@ -509,6 +509,9 @@ static const unsigned char test_mac[2][16] =
}
};
/* Make sure no other definition is already present. */
#undef ASSERT
#define ASSERT( cond, args ) \
do \
{ \

View file

@ -0,0 +1,3 @@
Changes
* Undefine the ASSERT macro before defining it locally, in case it is defined
in a platform header. Contributed by Abdelatif Guettouche in #3557.