Sync included glib with external glib: GPOINTER_TO_INT() etc should
not cause a warning. The singular use of this, in libcroco, is safe.
This commit is contained in:
parent
cb1f10b94c
commit
12240e42f2
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-gettext-tools_gnulib-lib_glibconfig_in_h,v 1.1 2008/06/30 17:37:00 naddy Exp $
|
||||
--- gettext-tools/gnulib-lib/glibconfig.in.h.orig Mon Jun 30 17:59:23 2008
|
||||
+++ gettext-tools/gnulib-lib/glibconfig.in.h Mon Jun 30 18:00:56 2008
|
||||
@@ -40,11 +40,11 @@ typedef uint32_t guint32;
|
||||
typedef size_t gsize;
|
||||
typedef ssize_t gssize;
|
||||
|
||||
-#define GPOINTER_TO_INT(p) ((gint) (p))
|
||||
-#define GPOINTER_TO_UINT(p) ((guint) (p))
|
||||
+#define GPOINTER_TO_INT(p) ((gint) (glong) (p))
|
||||
+#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p))
|
||||
|
||||
-#define GINT_TO_POINTER(i) ((gpointer) (i))
|
||||
-#define GUINT_TO_POINTER(u) ((gpointer) (u))
|
||||
+#define GINT_TO_POINTER(i) ((gpointer) (glong) (i))
|
||||
+#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
|
||||
|
||||
#define g_memmove memmove
|
||||
|
Loading…
Reference in New Issue
Block a user