assert() replacement if not available

This commit is contained in:
Olaf Bergmann committed 2011-12-06 21:24:14 +01:00
1 parent f9bb22fb2b
commit b79670a0c0
1 file changed
+7 -2
+7 -2
View File
@@ -16,8 +16,13 @@
#include "config.h"
#ifndef HAVE_ASSERT_H
#define assert(x)
#ifdef HAVE_ASSERT_H
#include <assert.h>
#else
#ifndef assert
#warn "assertions are disabled"
# define assert(x)
#endif
#endif
#include <string.h>