ext/xlsxwriter/libxlsxwriter/third_party/minizip/Makefile in xlsxwriter-0.0.3 vs ext/xlsxwriter/libxlsxwriter/third_party/minizip/Makefile in xlsxwriter-0.0.4.pre.2

- old
+ new

@@ -7,11 +7,11 @@ Q=@ ifdef V Q= endif -UNAME := $(shell uname) +UNAME := $(shell uname -sr) # Check for MinGW/MinGW64/Cygwin environments. ifneq (,$(findstring MINGW, $(UNAME))) MING_LIKE = y endif @@ -28,9 +28,14 @@ # Change make options on MinGW/MinGW64/Cygwin. ifdef MING_LIKE FPIC = CC = gcc CFLAGS += -DUSE_FILE32API +endif + +# Fix for modified zconf.h on Gentoo. +ifneq (,$(findstring gentoo, $(UNAME))) +CFLAGS += -DOF=_Z_OF endif all: ioapi.o zip.o ioapi.so zip.so %.o : %.c