ext/xlsxwriter/libxlsxwriter/src/Makefile in xlsxwriter-0.0.4 vs ext/xlsxwriter/libxlsxwriter/src/Makefile in xlsxwriter-0.0.5
- old
+ new
@@ -1,10 +1,10 @@
###############################################################################
#
# Makefile for libxlsxwriter library.
#
-# Copyright 2014-2017, John McNamara, jmcnamara@cpan.org
+# Copyright 2014-2018, John McNamara, jmcnamara@cpan.org
#
# Keep the output quiet by default.
Q=@
ifdef V
@@ -34,9 +34,19 @@
else
# Use tmpfileplus (the default).
TMPFILEPLUS_DIR = ../third_party/tmpfileplus
TMPFILEPLUS_OBJ = $(TMPFILEPLUS_DIR)/tmpfileplus.o
TMPFILEPLUS_SO = $(TMPFILEPLUS_DIR)/tmpfileplus.so
+endif
+
+# Set flag for big endian architecture.
+ifdef USE_BIG_ENDIAN
+CFLAGS += -DLXW_BIG_ENDIAN
+endif
+
+# Use a user-defined double number formatting function.
+ifdef USE_DOUBLE_FUNCTION
+CFLAGS += -DUSE_DOUBLE_FUNCTION
endif
# Flags passed to compiler.
CFLAGS += -g -O3 -Wall -Wextra -pedantic -ansi