File: glib.patch

package info (click to toggle)
graphviz 2.38.0-17
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 80,692 kB
  • ctags: 27,194
  • sloc: ansic: 1,038,718; sh: 14,765; cpp: 11,377; makefile: 4,480; yacc: 3,339; xml: 2,466; tcl: 1,950; cs: 1,890; objc: 1,157; perl: 422; lex: 375; awk: 241; python: 45; ruby: 41; php: 26
file content (51 lines) | stat: -rw-r--r-- 2,019 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff -ru glib-2.16.3/glib/gconvert.c glib-2.16.3.patched/glib/gconvert.c
--- glib-2.16.3/glib/gconvert.c	2008-04-08 11:47:29.000000000 +0800
+++ glib-2.16.3.patched/glib/gconvert.c	2008-04-24 14:41:44.000000000 +0800
@@ -48,12 +48,14 @@
 
 #include "glibintl.h"
 
+#if !defined(__APPLE_CC__) || !defined(__LP64__)
 #if defined(USE_LIBICONV_GNU) && !defined (_LIBICONV_H)
 #error GNU libiconv in use but included iconv.h not from libiconv
 #endif
 #if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H)
 #error GNU libiconv not in use but included iconv.h is from libiconv
 #endif
+#endif
 
 #include "galias.h"
 
--- glib-2.27.3/glib/gvariant.c.old	2011-01-12 12:36:42.000000000 -0500
+++ glib-2.27.3/glib/gvariant.c	2011-01-12 12:37:15.000000000 -0500
@@ -3875,8 +3875,8 @@
 }
 
 /* The code below assumes this */
-G_STATIC_ASSERT (sizeof (gboolean) == sizeof (guint32));
-G_STATIC_ASSERT (sizeof (gdouble) == sizeof (guint64));
+//G_STATIC_ASSERT (sizeof (gboolean) == sizeof (guint32));
+//G_STATIC_ASSERT (sizeof (gdouble) == sizeof (guint64));
 
 static void
 g_variant_valist_get_leaf (const gchar **str,
--- glib-2.27.3/gio/gdbusmessage.c.old	2011-01-12 12:54:28.000000000 -0500
+++ glib-2.27.3/gio/gdbusmessage.c	2011-01-12 12:54:52.000000000 -0500
@@ -1186,7 +1186,7 @@
           v = g_data_input_stream_read_uint64 (dis, NULL, &local_error);
           if (local_error != NULL)
             goto fail;
-          G_STATIC_ASSERT (sizeof (gdouble) == sizeof (guint64));
+//          G_STATIC_ASSERT (sizeof (gdouble) == sizeof (guint64));
           encoded = (gdouble *) &v;
           ret = g_variant_new_double (*encoded);
         }
@@ -1938,7 +1938,7 @@
         {
           guint64 *encoded;
           gdouble v = g_variant_get_double (value);
-          G_STATIC_ASSERT (sizeof (gdouble) == sizeof (guint64));
+//          G_STATIC_ASSERT (sizeof (gdouble) == sizeof (guint64));
           encoded = (guint64 *) &v;
           g_data_output_stream_put_uint64 (dos, *encoded, NULL, NULL);
         }