[gtk+] gtkpapersize: Reformat #if preprocessor commands



commit 99a162c69e0eb21d8b9fa6b127c69c7c536366fd
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Nov 20 17:33:03 2013 +0000

    gtkpapersize: Reformat #if preprocessor commands
    
    This eliminates some false positive warnings from scan-build, which was
    not interpreting the #ifs and hence warning about unbalanced #endifs.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712760

 gtk/gtkpapersize.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpapersize.c b/gtk/gtkpapersize.c
index 1ab622e..cece2be 100644
--- a/gtk/gtkpapersize.c
+++ b/gtk/gtkpapersize.c
@@ -30,7 +30,8 @@
 #include "gtkprintoperation.h"  /* for GtkPrintError */
 #include "gtkintl.h"
 
-#ifdef G_OS_UNIX                /* _gtk_load_custom_papers() only on Unix so far  */
+/* _gtk_load_custom_papers() only on Unix so far  */
+#ifdef G_OS_UNIX
 #include "gtkcustompaperunixdialog.h"
 #endif
 
@@ -475,7 +476,8 @@ gtk_paper_size_get_paper_sizes (gboolean include_custom)
 {
   GList *list = NULL;
   guint i;
-#ifdef G_OS_UNIX                /* _gtk_load_custom_papers() only on Unix so far  */
+/* _gtk_load_custom_papers() only on Unix so far  */
+#ifdef G_OS_UNIX
   if (include_custom)
     {
       GList *page_setups, *l;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]