Merge pull request #612 from nfi/assert

Undefine the assert macro to avoid compiler warning.
This commit is contained in:
Nicolas Tsiftes 2014-06-11 15:43:17 +02:00
commit fb4fc312f1

View File

@ -28,9 +28,10 @@
*
*/
#ifndef ASSERT_H
#define ASSERT_H
#ifndef ASSERT_H_
#define ASSERT_H_
#undef assert
#ifdef NDEBUG
#define assert(e) ((void)0)
#else
@ -44,4 +45,4 @@ void _xassert(const char *, int);
#define __CTASSERT(x, y) typedef char __assert ## y[(x) ? 1 : -1]
#endif
#endif /* ASSERT_H */
#endif /* ASSERT_H_ */