From 6781d2c9a6b7dc5d54edae5bf4d69ce6fe32053e Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sat, 19 Feb 2011 23:26:46 +0100 Subject: [PATCH] Revert "[Win64] Compilation fix for eglib in win64" This reverts commit a05a29ce9585e7163cb79674101c8d552946e028. --- eglib/configure.ac | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/eglib/configure.ac b/eglib/configure.ac index 5bd114b136e..7087acf7f09 100644 --- a/eglib/configure.ac +++ b/eglib/configure.ac @@ -94,7 +94,6 @@ AM_CONDITIONAL(PLATFORM_DARWIN, test x$platform_darwin = xyes) AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(void *) -AC_CHECK_SIZEOF(long long) AC_CHECK_FUNCS(strndup strlcpy getpwuid_r strtok_r rewinddir vasprintf) AM_CONDITIONAL(NEED_VASPRINTF, test x$have_vasprintf = x ) AC_CHECK_LIB(iconv, iconv_open, LIBS="$LIBS -liconv") @@ -135,25 +134,7 @@ AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localch AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0]) AC_SUBST(HAVE_ALLOCA_H) -if test $ac_cv_sizeof_void_p = $ac_cv_sizeof_int; then - GPOINTER_TO_INT="((gint) (ptr))" - GPOINTER_TO_UINT="((guint) (ptr))" - GINT_TO_POINTER="((gpointer) (v))" - GUINT_TO_POINTER="((gpointer) (v))" - GSIZE="int" - GSIZE_FORMAT='"u"' - G_GUINT64_FORMAT='"llu"' - G_GINT64_FORMAT='"lld"' -elif test $ac_cv_sizeof_void_p = $ac_cv_sizeof_long_long; then - GPOINTER_TO_INT="((gint)(long long) (ptr))" - GPOINTER_TO_UINT="((guint)(unsigned long long) (ptr))" - GINT_TO_POINTER="((gpointer)(long long) (v))" - GUINT_TO_POINTER="((gpointer)(unsigned long long) (v))" - GSIZE="long long" - GSIZE_FORMAT='"I64u"' - G_GUINT64_FORMAT='"I64u"' - G_GINT64_FORMAT='"I64i"' -else +if test $ac_cv_sizeof_void_p != $ac_cv_sizeof_int; then GPOINTER_TO_INT="((gint)(long) (ptr))" GPOINTER_TO_UINT="((guint)(long) (ptr))" GINT_TO_POINTER="((gpointer)(glong) (v))" @@ -162,6 +143,15 @@ else GSIZE_FORMAT='"lu"' G_GUINT64_FORMAT='"lu"' G_GINT64_FORMAT='"ld"' +else + GPOINTER_TO_INT="((gint) (ptr))" + GPOINTER_TO_UINT="((guint) (ptr))" + GINT_TO_POINTER="((gpointer) (v))" + GUINT_TO_POINTER="((gpointer) (v))" + GSIZE="int" + GSIZE_FORMAT='"u"' + G_GUINT64_FORMAT='"llu"' + G_GINT64_FORMAT='"lld"' fi AC_PATH_PROG(PKG_CONFIG, pkg-config, no) -- 2.11.4.GIT