Skip to content

Commit d6b19ba

Browse files
committed
add compat macro for cmake <2.0.0
1 parent 3c414d5 commit d6b19ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
#include <cmocka.h>
99

10+
#if CMOCKA_VERSION_INT < CM_VERSION_INT(2, 0, 0)
11+
#define assert_uint_in_range(a, b, c) assert_in_range(a, b, c)
12+
#endif
13+
1014
#include "endian.h"
1115
#include "idalloc.h"
1216
#include "leb128.h"

0 commit comments

Comments
 (0)