Sensei reported a bug with assert.h being included multiple times. Occurs on
[awesomized/libmemcached] / libmemcached / memcached_watchpoint.h
index b0270b6177b8d9fda1060ea6f8cb446abb478fdb..e87b0b04f7a5d9d2a0c4a4f5560445600f74ee9c 100644 (file)
@@ -16,6 +16,8 @@ extern "C" {
 /* Some personal debugging functions */
 #ifdef MEMCACHED_INTERNAL 
 #ifdef HAVE_DEBUG
+#include <assert.h>
+
 #define WATCHPOINT fprintf(stderr, "\nWATCHPOINT %s:%d (%s)\n", __FILE__, __LINE__,__func__);fflush(stdout);
 #define WATCHPOINT_ERROR(A) fprintf(stderr, "\nWATCHPOINT %s:%d %s\n", __FILE__, __LINE__, memcached_strerror(NULL, A));fflush(stdout);
 #define WATCHPOINT_IFERROR(A) if(A != MEMCACHED_SUCCESS)fprintf(stderr, "\nWATCHPOINT %s:%d %s\n", __FILE__, __LINE__, memcached_strerror(NULL, A));fflush(stdout);