[recipes] Use #ifdef for conditionally compiled code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Use #ifdef for conditionally compiled code
- Date: Sat, 18 Feb 2017 01:41:37 +0000 (UTC)
commit ffe0d8af920b993bae75031d5cd06e8dc09db8fc
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 17 20:39:57 2017 -0500
Use #ifdef for conditionally compiled code
This is the common way of doing it. Lets be consistent.
src/gr-about-dialog.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-about-dialog.c b/src/gr-about-dialog.c
index cde6b9c..d6ca308 100644
--- a/src/gr-about-dialog.c
+++ b/src/gr-about-dialog.c
@@ -366,12 +366,12 @@ populate_system_tab (GtkTextView *view)
text_buffer_append (buffer, _("Bundled libraries"));
text_buffer_append (buffer, "\n");
-#if ENABLE_AUTOAR
+#ifdef ENABLE_AUTOAR
text_buffer_append_printf (buffer, "\tgnome-autoar\t%s\t", AUTOAR_VERSION);
text_buffer_append_link (view, buffer, "LGPLv2",
"http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html");
text_buffer_append (buffer, "\n");
#endif
-#if ENABLE_GSPELL
+#ifdef ENABLE_GSPELL
text_buffer_append_printf (buffer, "\tgspell\t%s\t", GSPELL_VERSION);
text_buffer_append_link (view, buffer, "LGPLv2",
"http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html");
text_buffer_append (buffer, "\n");
@@ -396,10 +396,10 @@ populate_system_tab (GtkTextView *view)
gtk_get_major_version (),
gtk_get_minor_version (),
gtk_get_micro_version ());
-#if ENABLE_AUTOAR
+#ifdef ENABLE_AUTOAR
text_buffer_append_printf (buffer, "\tgnome-autoar\t%s\n", AUTOAR_VERSION);
#endif
-#if ENABLE_GSPELL
+#ifdef ENABLE_GSPELL
text_buffer_append_printf (buffer, "\tgspell\t%s\n", GSPELL_VERSION);
#endif
#ifdef ENABLE_CANBERRA
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]