[58480] trunk/dports/devel/glib2/files/patch-configure.in.diff

ryandesign at macports.org ryandesign at macports.org
Tue Sep 29 05:44:24 PDT 2009


Revision: 58480
          http://trac.macports.org/changeset/58480
Author:   ryandesign at macports.org
Date:     2009-09-29 05:44:24 -0700 (Tue, 29 Sep 2009)
Log Message:
-----------
glib2: use #ifdef everywhere in the patch

Modified Paths:
--------------
    trunk/dports/devel/glib2/files/patch-configure.in.diff

Modified: trunk/dports/devel/glib2/files/patch-configure.in.diff
===================================================================
--- trunk/dports/devel/glib2/files/patch-configure.in.diff	2009-09-29 12:37:02 UTC (rev 58479)
+++ trunk/dports/devel/glib2/files/patch-configure.in.diff	2009-09-29 12:44:24 UTC (rev 58480)
@@ -65,7 +65,7 @@
  
 -#define GPOINTER_TO_INT(p)	((gint)  ${glib_gpi_cast} (p))
 -#define GPOINTER_TO_UINT(p)	((guint) ${glib_gpui_cast} (p))
-+#if __LP64
++#ifdef __LP64__
 +#define GPOINTER_TO_INT(p)	((gint)  (glong) (p))
 +#define GPOINTER_TO_UINT(p)	((guint) (gulong) (p))
 +
@@ -119,13 +119,13 @@
  };
 -#define	G_STATIC_MUTEX_INIT	{ NULL, { { $g_mutex_contents} } }
 +#ifdef __LP64__
-+#if __BIG_ENDIAN__
++#ifdef __BIG_ENDIAN__
 +#define	G_STATIC_MUTEX_INIT	{ NULL, { { 50,-86,-85,-89,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } }
 +#else
 +#define	G_STATIC_MUTEX_INIT	{ NULL, { { -89,-85,-86,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } }
 +#endif
 +#else
-+#if __BIG_ENDIAN__
++#ifdef __BIG_ENDIAN__
 +#define	G_STATIC_MUTEX_INIT	{ NULL, { { 50,-86,-85,-89,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } }
 +#else
 +#define	G_STATIC_MUTEX_INIT	{ NULL, { { -89,-85,-86,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } }
@@ -151,7 +151,7 @@
  _______EOF
  	if test x"$g_memory_barrier_needed" != xno; then
  	  echo >>$outfile
-+	  echo "#if __BIG_ENDIAN__" >>$outfile
++	  echo "#ifdef __BIG_ENDIAN__" >>$outfile
  	  echo "#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1" >>$outfile
 +	  echo "#endif" >>$outfile
  	fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090929/14a7bfbc/attachment-0001.html>


More information about the macports-changes mailing list