Skip to content

Commit 2069e0f

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test.c

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

88
#include <cmocka.h>
99

10+
/* note: these version macros were introduced by cmocka-2.0.0 */
11+
#if defined(CM_VERSION_INT) && defined(CM_VERSION_INT)
12+
#if CMOCKA_VERSION_INT < CM_VERSION_INT(2, 0, 0)
13+
#define assert_uint_in_range(a, b, c) assert_in_range(a, b, c)
14+
#endif
15+
#endif
16+
1017
#include "endian.h"
1118
#include "idalloc.h"
1219
#include "leb128.h"

0 commit comments

Comments
 (0)