[nautilus/wip/hadess/fixes: 37/37] placessidebar: Fix gettext function redefinitions




commit 3dcc7ab13b8be786cc923783f7ea6104bc710412
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 11 10:28:08 2022 +0200

    placessidebar: Fix gettext function redefinitions
    
    In file included from nautilus/src/gtk/nautilusgtkbookmarksmanager.c:31:
    /usr/include/glib-2.0/glib/gi18n-lib.h:30: warning: "_" redefined
       30 | #define  _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
          |
    In file included from nautilus/src/gtk/nautilusgtkbookmarksmanager.c:25:
    /usr/include/glib-2.0/glib/gi18n.h:26: note: this is the location of the previous definition
       26 | #define  _(String) gettext (String)
          |
    /usr/include/glib-2.0/glib/gi18n-lib.h:31: warning: "Q_" redefined
       31 | #define Q_(String) g_dpgettext (GETTEXT_PACKAGE, String, 0)
          |
    /usr/include/glib-2.0/glib/gi18n.h:27: note: this is the location of the previous definition
       27 | #define Q_(String) g_dpgettext (NULL, String, 0)
          |
    /usr/include/glib-2.0/glib/gi18n-lib.h:33: warning: "C_" redefined
       33 | #define C_(Context,String) g_dpgettext (GETTEXT_PACKAGE, Context "\004" String, strlen (Context) 
+ 1)
          |
    /usr/include/glib-2.0/glib/gi18n.h:29: note: this is the location of the previous definition
       29 | #define C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1)
          |

 src/gtk/nautilusgtkbookmarksmanager.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/gtk/nautilusgtkbookmarksmanager.c b/src/gtk/nautilusgtkbookmarksmanager.c
index 3563fc2f1..86f3bb4d9 100644
--- a/src/gtk/nautilusgtkbookmarksmanager.c
+++ b/src/gtk/nautilusgtkbookmarksmanager.c
@@ -28,8 +28,6 @@
 
 #include <string.h>
 
-#include <glib/gi18n-lib.h>
-
 #include "nautilusgtkbookmarksmanagerprivate.h"
 
 static void


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