summaryrefslogtreecommitdiff
path: root/test/TestAllFiles.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/TestAllFiles.h')
-rw-r--r--test/TestAllFiles.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/TestAllFiles.h b/test/TestAllFiles.h
index 505b2a3..da171bb 100644
--- a/test/TestAllFiles.h
+++ b/test/TestAllFiles.h
@@ -32,6 +32,12 @@
#include "config.h"
+/* g_pattern_spec_match_string is available in glib 2.70 and later,
+ to replace the deprecated g_pattern_match_string */
+#ifdef HAVE_G_PATTERN_SPEC_MATCH_STRING
+#define g_pattern_match_string g_pattern_spec_match_string
+#endif
+
#define DEFAULT_TIMEOUT 10 /* maximum seconds for each file */
static sigjmp_buf jump_env;