Fix windows build of libflac

This commit is contained in:
Romain TISSERAND 2017-07-30 21:44:43 +02:00
parent f31aa7219e
commit d46cade1de

View File

@ -79,6 +79,10 @@ endif
ifeq ($(HAVE_CHD), 1)
FLAGS += -DHAVE_CHD -D_7ZIP_ST -DPACKAGE_VERSION=\"1.3.2\" -DFLAC_API_EXPORTS -DFLAC__HAS_OGG=0 -DHAVE_LROUND -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_SYS_PARAM_H
INCFLAGS += -I$(DEPS_DIR)/crypto -I$(DEPS_DIR)/flac-1.3.2/include -I$(DEPS_DIR)/flac-1.3.2/src/libFLAC/include -I$(DEPS_DIR)/lzma-16.04/C -I$(DEPS_DIR)/libchdr
ifeq ($(platform), win)
FLAGS += -DHAVE_FSEEKO
endif
endif
ifeq ($(NEED_TREMOR), 1)
@ -185,6 +189,9 @@ SOURCES_C += \
$(DEPS_DIR)/libchdr/flac.c \
$(DEPS_DIR)/libchdr/huffman.c
ifeq ($(platform), win)
SOURCES_C += $(DEPS_DIR)/flac-1.3.2/src/libFLAC/windows_unicode_filenames.c
endif
SOURCES_CXX += \
$(CDROM_DIR)/CDAccess_CHD.cpp