From bdfe02158f22da7d078978ee6625701226412a54 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 21 Apr 2014 22:57:21 +0200 Subject: build: glob() is always available glob() is mandated by POSIX. For the only non-POSIX platform we support, Windows, we have our own replacement. So the ifdeffery is not needed. Still leave the checks in the configure scripts, because they have to decide whether to compile the replacement or not. (Although this could be special cased to mingw-only, the wscript seems to make this hard.) --- demux/mf.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'demux/mf.c') diff --git a/demux/mf.c b/demux/mf.c index 04c99a3bcc..173593f167 100644 --- a/demux/mf.c +++ b/demux/mf.c @@ -26,7 +26,6 @@ #include #include -#include "config.h" #include "osdep/io.h" #include "talloc.h" #include "common/msg.h" @@ -46,7 +45,6 @@ static void mf_add(mf_t *mf, const char *fname) mf_t *open_mf_pattern(void *talloc_ctx, struct mp_log *log, char *filename) { -#if defined(HAVE_GLOB) || defined(__MINGW32__) int error_count = 0; int count = 0; @@ -138,10 +136,6 @@ mf_t *open_mf_pattern(void *talloc_ctx, struct mp_log *log, char *filename) exit_mf: return mf; -#else - mp_fatal(log, "mf support is disabled on your os\n"); - return 0; -#endif } mf_t *open_mf_single(void *talloc_ctx, struct mp_log *log, char *filename) -- cgit v1.2.3