summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2016-09-21 14:40:03 +0900
committerAkira TAGOH <akira@tagoh.org>2016-09-21 14:40:03 +0900
commitee8ae1a2ffeb9d7372dd3179ed2973fe44546470 (patch)
tree5208f943833848beb58bb897adf401e51e51718b
parentbb3f4a79d146b8621b4e2bf8b04a76b953221847 (diff)
Get rid of the arch-dependent code from lt-config.h
Patch from Jakub Wilk
-rw-r--r--configure.ac24
-rw-r--r--liblangtag/lt-tag.c2
2 files changed, 1 insertions, 25 deletions
diff --git a/configure.ac b/configure.ac
index 055b16e..a3511b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -423,15 +423,6 @@ ____EOS
#include <liblangtag/lt-macros.h>
____EOS
-if test -z "$unknown_sizeof_void_p"; then
- cat >> $outfile<<____EOS
-
-#define LT_POINTER_TO_INT(p) ((int) ${ptoi_cast} (p))
-____EOS
- else
- echo "#error SIZEOF_VOID_P unknown"
- fi
-
cat >> $outfile<<____EOS
#endif /* __LT_CONFIG_H__ */
@@ -455,21 +446,6 @@ ____EOS
lt_inline="\$lt_inline
#define LT_HAVE__INLINE__ 1"
fi
-
- case $ac_cv_sizeof_void_p in
- $ac_cv_sizeof_int)
- ptoi_cast=''
- ;;
- $ac_cv_sizeof_long)
- ptoi_cast='(long)'
- ;;
- $ac_cv_sizeof_long_long)
- ptoi_cast='(long long)'
- ;;
- *)
- unknown_sizeof_void_p=yes
- ;;
- esac
])
AC_CONFIG_FILES([
diff --git a/liblangtag/lt-tag.c b/liblangtag/lt-tag.c
index 729f50d..8394543 100644
--- a/liblangtag/lt-tag.c
+++ b/liblangtag/lt-tag.c
@@ -198,7 +198,7 @@ static int
_lt_tag_variant_compare(const lt_pointer_t a,
const lt_pointer_t b)
{
- return LT_POINTER_TO_INT (a) - LT_POINTER_TO_INT (b);
+ return a != b;
}
#define DEFUNC_TAG_FREE(__func__) \