SRCS := $(OBJS:.o=.c)
+ifeq ($(targetos), MinGW)
+OBJS += ../win32/win32.o
+SRCS += ../win32/win32.c
+endif
+
CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\"" -DLIBDIR="\"$(libdir)\""
LDFLAGS += $(LIBDL) -lpthread
#define MLT_CONSUMER(x) ( ( mlt_consumer )( x ) ) /**< Cast to a Consumer pointer */
#define MLT_FRAME(x) ( ( mlt_frame )( x ) ) /**< Cast to a Frame pointer */
+#ifdef WIN32
+#include <pthread.h>
+/* Win32 compatibility function declarations */
+extern int usleep(unsigned int useconds);
+extern int nanosleep( const struct timespec * rqtp, struct timespec * rmtp );
+extern int setenv(const char *name, const char *value, int overwrite);
+#endif
+
#endif
ifeq ($(targetos), MinGW)
CFLAGS += `sdl-config --cflags`
LDFLAGS += `sdl-config --libs`
-OBJS += ../win32/win32.o
-SRCS += ../win32/win32.c
bindir = $(prefix)
endif
SRCS := $(OBJS:.o=.c)
-ifeq ($(targetos), MinGW)
-OBJS += ../../win32/win32.o
-SRCS += ../../win32/win32.c
-endif
-
all: $(TARGET)
$(LOCAL_FFMPEG_OBJS):
SRCS := $(OBJS:.o=.c)
-ifeq ($(targetos), MinGW)
-OBJS += ../../win32/win32.o
-SRCS += ../../win32/win32.c
-endif
-
all: $(TARGET)
$(TARGET): $(OBJS) $(ASM_OBJS)
SRCS += consumer_sdl_osx.m consumer_sdl_osx.h
endif
-ifeq ($(targetos), MinGW)
-OBJS += ../../win32/win32.o
-SRCS += ../../win32/win32.c
-endif
-
all: $(TARGET)
$(TARGET): $(OBJS)
tolower((unsigned char)*string)))
;
else if ((flags & FNM_PREFIX_DIRS) && *string == EOS &&
- (c == '/' && string != stringstart ||
- string == stringstart+1 && *stringstart == '/') )
+ ((c == '/' && string != stringstart) ||
+ (string == stringstart+1 && *stringstart == '/')) )
return (0);
else
return (FNM_NOMATCH);