Remove unused HAVE_LONG_LONG_FORMAT and HAVE_INT64_AND_I64

This commit is contained in:
Xavier Claessens 2018-06-05 16:23:02 -04:00
parent 68d99c766b
commit 65bd090d57
4 changed files with 1 additions and 14 deletions

View File

@ -268,9 +268,6 @@
/* Define if you have the 'long long' type. */ /* Define if you have the 'long long' type. */
#mesondefine HAVE_LONG_LONG #mesondefine HAVE_LONG_LONG
/* define if system printf can print long long */
#mesondefine HAVE_LONG_LONG_FORMAT
/* Define to 1 if you have the `lstat' function. */ /* Define to 1 if you have the `lstat' function. */
#mesondefine HAVE_LSTAT #mesondefine HAVE_LSTAT

View File

@ -269,9 +269,6 @@
/* Define if you have the 'long long' type. */ /* Define if you have the 'long long' type. */
#define HAVE_LONG_LONG 1 #define HAVE_LONG_LONG 1
/* define if system printf can print long long */
/* #undef HAVE_LONG_LONG_FORMAT */
/* Define to 1 if you have the `lstat' function. */ /* Define to 1 if you have the `lstat' function. */
/* #undef HAVE_LSTAT */ /* #undef HAVE_LSTAT */

View File

@ -533,10 +533,6 @@ AS_IF([test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8],
done]) done])
AS_IF([ test -n "$glib_cv_long_long_format"], [ AS_IF([ test -n "$glib_cv_long_long_format"], [
AC_MSG_RESULT(%${glib_cv_long_long_format}u) AC_MSG_RESULT(%${glib_cv_long_long_format}u)
AC_DEFINE(HAVE_LONG_LONG_FORMAT,1,[define if system printf can print long long])
if test x"$glib_cv_long_long_format" = xI64; then
AC_DEFINE(HAVE_INT64_AND_I64,1,[define to support printing 64-bit integers with format I64])
fi
], [AC_MSG_RESULT(none)]) ], [AC_MSG_RESULT(none)])
],[ test x$ac_cv_sizeof___int64 = x8], [ ],[ test x$ac_cv_sizeof___int64 = x8], [
# __int64 is a 64 bit integer. # __int64 is a 64 bit integer.
@ -544,8 +540,6 @@ AS_IF([test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8],
# We know this is MSVCRT.DLL, and what the formats are # We know this is MSVCRT.DLL, and what the formats are
glib_cv_long_long_format=I64 glib_cv_long_long_format=I64
AC_MSG_RESULT(%${glib_cv_long_long_format}u) AC_MSG_RESULT(%${glib_cv_long_long_format}u)
AC_DEFINE(HAVE_LONG_LONG_FORMAT,1,[define if system printf can print long long])
AC_DEFINE(HAVE_INT64_AND_I64,1,[define to support printing 64-bit integers with format I64])
]) ])
AC_C_CONST AC_C_CONST

View File

@ -961,9 +961,8 @@ if cc.links('''#include <signal.h>
glib_conf.set('HAVE_SIG_ATOMIC_T', 1) glib_conf.set('HAVE_SIG_ATOMIC_T', 1)
endif endif
# Check if 'long long' works and what format can be used to print it # Check if 'long long' works
# jm_AC_TYPE_LONG_LONG # jm_AC_TYPE_LONG_LONG
# Nothing uses HAVE_LONG_LONG_FORMAT and HAVE_INT64_AND_I64
if cc.compiles('''long long ll = 1LL; if cc.compiles('''long long ll = 1LL;
int i = 63; int i = 63;
int some_func (void) { int some_func (void) {