Only define _ASSERT_H when it is not already defined
This commit is contained in:
parent
44b1bc45f6
commit
0179f32b01
1 changed files with 3 additions and 1 deletions
|
@ -287,7 +287,9 @@ struct criterion_assert_args {
|
|||
|
||||
// this is needed to make the POSIX assert.h redefine assert if
|
||||
// subsequently included
|
||||
# define _ASSERT_H 1
|
||||
# ifndef _ASSERT_H
|
||||
# define _ASSERT_H 1
|
||||
# endif /* !_ASSERT_H */
|
||||
# endif /* !assert */
|
||||
|
||||
# define abort_test(Message) CRITERION_ASSERT_DEPRECATED_(abort_test) cr_abort_test(Message)
|
||||
|
|
Loading…
Add table
Reference in a new issue