From f029bd876ec5fce6ab65eedc8b3b2d3059ba1391 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Sat, 3 Jun 2017 14:08:04 +0100 Subject: [PATCH] check_mem: Fix Check 0.11 --- check_mem.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check_mem.h b/check_mem.h index a66751e211..be8a43cd62 100644 --- a/check_mem.h +++ b/check_mem.h @@ -1,6 +1,8 @@ #ifndef CHECK_MEM_H #define CHECK_MEM_H +#if CHECK_MAJOR_VERSION == 0 && CHECK_MINOR_VERSION < 11 + #define _ck_assert_mem(X, Y, L, OP) do { \ const char* _ck_x = (const char*)(void*)(X); \ const char* _ck_y = (const char*)(void*)(Y); \ @@ -24,3 +26,5 @@ #define ck_assert_mem_ne(X, Y, L) _ck_assert_mem(X, Y, L, !=) #endif + +#endif