[gnome-terminal] build: Use G_ENCODE_VERSION
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] build: Use G_ENCODE_VERSION
- Date: Sun, 24 Apr 2016 11:18:03 +0000 (UTC)
commit de97dcbcd39934c6b062035277ea708dc57b88ba
Author: Christian Persch <chpe gnome org>
Date: Sun Apr 24 13:17:42 2016 +0200
build: Use G_ENCODE_VERSION
Use G_ENCODE_VERSION(x,y) instead of GDK_VERSION_x_y so we can refer to
future versions (from the point of view of building on an older release
that doesn't have these future defines).
https://bugzilla.gnome.org/show_bug.cgi?id=765201
configure.ac | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 701aebf..704c055 100644
--- a/configure.ac
+++ b/configure.ac
@@ -384,10 +384,10 @@ AC_SUBST([WARN_CFLAGS])
AC_SUBST([AM_CPPFLAGS])
AC_SUBST([AM_CFLAGS])
AC_SUBST([AM_LDFLAGS])
-AC_DEFINE_UNQUOTED([GLIB_VERSION_MIN_REQUIRED],[GLIB_VERSION_[]AS_TR_SH([$GLIB_MIN_REQUIRED])],[Define the
min required glib version])
-AC_DEFINE_UNQUOTED([GLIB_VERSION_MAX_ALLOWED],[GLIB_VERSION_[]AS_TR_SH([$GLIB_MAX_ALLOWED])],[Define the max
allowed glib version])
-AC_DEFINE_UNQUOTED([GDK_VERSION_MIN_REQUIRED],[GDK_VERSION_[]AS_TR_SH([$GTK_MIN_REQUIRED])],[Define the min
required gtk version])
-AC_DEFINE_UNQUOTED([GDK_VERSION_MAX_ALLOWED],[GDK_VERSION_[]AS_TR_SH([$GTK_MAX_ALLOWED])],[Define the max
allowed gtk version])
+AC_DEFINE_UNQUOTED([GLIB_VERSION_MIN_REQUIRED],[G_ENCODE_VERSION(${GLIB_MIN_REQUIRED/./,})],[Define the min
required glib version])
+AC_DEFINE_UNQUOTED([GLIB_VERSION_MAX_ALLOWED],[G_ENCODE_VERSION(${GLIB_MAX_ALLOWED/./,})],[Define the max
allowed glib version])
+AC_DEFINE_UNQUOTED([GDK_VERSION_MIN_REQUIRED],[G_ENCODE_VERSION(${GTK_MIN_REQUIRED/./,})],[Define the min
required gtk version])
+AC_DEFINE_UNQUOTED([GDK_VERSION_MAX_ALLOWED],[G_ENCODE_VERSION(${GTK_MAX_ALLOWED/./,})],[Define the max
allowed gtk version])
# ****************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]