[test] Fix test-subset on old distros (#758)

https://developer.gnome.org/glib/stable/glib-Testing.html#g-assert-cmpmem
This commit is contained in:
Ebrahim Byagowi 2018-02-06 20:40:42 +03:30 committed by GitHub
parent 2971e9da49
commit 8cb8bfd5b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@
#include "hb-test.h"
#ifndef g_assert_cmpmem
#define g_assert_cmpmem(m1, l1, m2, l2) g_assert_true (l1 == l2 && memcmp (m1, m2, l1) == 0)
#endif
/* Unit tests for hb-subset.h */
static const char test_data[] = { 0, 0, 1, 0 };