[glib: 1/2] Remove unused HAVE_LONG_LONG_FORMAT and HAVE_INT64_AND_I64
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] Remove unused HAVE_LONG_LONG_FORMAT and HAVE_INT64_AND_I64
- Date: Tue, 5 Jun 2018 23:33:14 +0000 (UTC)
commit 65bd090d576cddb9a106ff765f4ef509121e1aa9
Author: Xavier Claessens <xavier claessens collabora com>
Date: Tue Jun 5 16:23:02 2018 -0400
Remove unused HAVE_LONG_LONG_FORMAT and HAVE_INT64_AND_I64
config.h.meson | 3 ---
config.h.win32.in | 3 ---
configure.ac | 6 ------
meson.build | 3 +--
4 files changed, 1 insertion(+), 14 deletions(-)
---
diff --git a/config.h.meson b/config.h.meson
index 65ae3a676..bf1cfdbbb 100644
--- a/config.h.meson
+++ b/config.h.meson
@@ -268,9 +268,6 @@
/* Define if you have the 'long long' type. */
#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. */
#mesondefine HAVE_LSTAT
diff --git a/config.h.win32.in b/config.h.win32.in
index d104b143f..25ff47252 100644
--- a/config.h.win32.in
+++ b/config.h.win32.in
@@ -269,9 +269,6 @@
/* Define if you have the 'long long' type. */
#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. */
/* #undef HAVE_LSTAT */
diff --git a/configure.ac b/configure.ac
index 5e39668b1..9ccedcdfc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -533,10 +533,6 @@ AS_IF([test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8],
done])
AS_IF([ test -n "$glib_cv_long_long_format"], [
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)])
],[ test x$ac_cv_sizeof___int64 = x8], [
# __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
glib_cv_long_long_format=I64
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
diff --git a/meson.build b/meson.build
index a89ca55cd..b2e53d4d3 100644
--- a/meson.build
+++ b/meson.build
@@ -961,9 +961,8 @@ if cc.links('''#include <signal.h>
glib_conf.set('HAVE_SIG_ATOMIC_T', 1)
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
-# Nothing uses HAVE_LONG_LONG_FORMAT and HAVE_INT64_AND_I64
if cc.compiles('''long long ll = 1LL;
int i = 63;
int some_func (void) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]