summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/pycompile.mk2
-rw-r--r--project/pyexts.c3
-rw-r--r--project/pyexts.mk4
3 files changed, 6 insertions, 3 deletions
diff --git a/project/pycompile.mk b/project/pycompile.mk
index a432f85..8cf2ac4 100644
--- a/project/pycompile.mk
+++ b/project/pycompile.mk
@@ -86,6 +86,8 @@ $(PYCOMPILE_DIR)/core/%.o: $(SOURCE_DIR)/%.c $(ALL_HEADERS) $(PYCOMPILE_TAGS)
$(PYCOMPILE_DIR)/pyext/obj/%.o: $(SOURCE_DIR)/Modules/%.c $(ALL_HEADERS) $(PYCOMPILE_TAGS)
$(NATIVE_CC) -c -o $@ $< $(PYCOMPILE_CFLAGS)
+$(PYCOMPILE_DIR)/pyext/obj/_decimal/%.o: NATIVE_CC_CFLAGS += -DUNIVERSAL
+
PYCOMPILE_PYEXT_SRCS = \
$(PYEXT_DECIMAL_SRCS) \
diff --git a/project/pyexts.c b/project/pyexts.c
index 3456b4e..71bca45 100644
--- a/project/pyexts.c
+++ b/project/pyexts.c
@@ -127,7 +127,8 @@ static const struct pyext_meta pyexts[] = {
"_curses_panel"),
PYEXT_COMMON("_decimal",
- "-I$(SOURCE_DIR)/Modules/_decimal/libmpdec",0,
+ "-I$(SOURCE_DIR)/Modules/_decimal/libmpdec -DUNIVERSAL",
+ 0,
"_decimal/_decimal",
"_decimal/libmpdec/basearith",
"_decimal/libmpdec/constants",
diff --git a/project/pyexts.mk b/project/pyexts.mk
index 753ef69..4cc0eab 100644
--- a/project/pyexts.mk
+++ b/project/pyexts.mk
@@ -1552,8 +1552,8 @@ PYEXT_DECIMAL_SRCS += pyext/obj/_decimal/libmpdec/transpose.c
PYEXT_DECIMAL_LOBJS = $(PYEXT_DECIMAL_SRCS:.c=.lo)
PYEXT_DECIMAL_OBJS = $(PYEXT_DECIMAL_SRCS:.c=.o)
-$(PYEXT_DECIMAL_LOBJS): CFLAGS_CONFIG += -I$(SOURCE_DIR)/Modules/_decimal/libmpdec
-$(PYEXT_DECIMAL_OBJS): CFLAGS_CONFIG += -I$(SOURCE_DIR)/Modules/_decimal/libmpdec
+$(PYEXT_DECIMAL_LOBJS): CFLAGS_CONFIG += -I$(SOURCE_DIR)/Modules/_decimal/libmpdec -DUNIVERSAL
+$(PYEXT_DECIMAL_OBJS): CFLAGS_CONFIG += -I$(SOURCE_DIR)/Modules/_decimal/libmpdec -DUNIVERSAL
PYEXT_DECIMAL_SHARED = pyext/_decimal$(PYTHON_SOEXT)
PYEXT_DECIMAL_STATIC = pyext/_decimal$(OS_ARCHIVE_EXT)