summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorleo2009-10-08 00:08:32 +0000
committerleo2009-10-08 00:08:32 +0000
commit9a0e93203b563299728cc41e6c455792bfe4c5af (patch)
tree4e95a0446d0aca601e2d4d2eb0e5721f595d1c5e /config.mk
parent27924be9739e67cb7808dfa98c4904816bed1cea (diff)
Fixes for 64-bit systems.
git-svn-id: http://svn.leocad.org/branches/leocad-0.75@836 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index 0b2c606..0e5b475 100644
--- a/config.mk
+++ b/config.mk
@@ -229,6 +229,11 @@ config:
ac_cv_sizeof_void_p=0; \
fi; \
echo "#define LC_SIZEOF_VOID_P $$ac_cv_sizeof_void_p" >> $(OSDIR)/config.h; \
+ if test "$$ac_cv_sizeof_void_p" -eq "8"; then \
+ echo "#define LC_POINTER_TO_INT(p) ((lcint32)(lcint64)(p))" >> $(OSDIR)/config.h; \
+ else \
+ echo "#define LC_POINTER_TO_INT(p) ((lcint32)(p))" >> $(OSDIR)/config.h; \
+ fi; \
rm -f conftest.c conftest conftestval; \
\
echo -n "checking size of long long... "; \