Only define _ASSERT_H when it is not already defined

This commit is contained in:
Snaipe 2015-04-25 17:28:06 +02:00
parent 44b1bc45f6
commit 0179f32b01

View file

@ -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)