[Patch] gio-standalone build fail on solaris because of __PRETTY_FUNCTION__



Hi Alexl,

When I try to build gio-standalone trunk code on Solaris with suncc, I get build fail with following message:

/ws/onnv-tools-prc/SUNWspro/SS11/bin/cc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -DGIO_MODULE_DIR=\"/export/home/halton/work/dist/lib/gio/modules\" -D_REENTRANT -D_PTHREADS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DG_LOG_DOMAIN=\"GIO\" -DG_DISABLE_DEPRECATED -DDBUS_API_SUBJECT_TO_CHANGE    -D_POSIX_PTHREAD_SEMANTICS -c test-streams.c
"test-streams.c", line 74: undefined symbol: __PRETTY_FUNCTION__
"test-streams.c", line 74: warning: improper pointer/integer combination: arg #3
"test-streams.c", line 80: undefined symbol: __PRETTY_FUNCTION__
"test-streams.c", line 80: warning: improper pointer/integer combination: arg #3
...

Use G_GNUC_PRETTY_FUNCTION instead will fix this error, patch is attached.

Halton.

Index: trunk/gio/test-streams.c
===================================================================
--- trunk/gio/test-streams.c	(revision 722)
+++ trunk/gio/test-streams.c	(working copy)
@@ -38,7 +38,7 @@
      if G_LIKELY(expr) { } else 			      	        \
         test_assert_warning (__FILE__,    	          \
                              __LINE__,	              \
-                             __PRETTY_FUNCTION__,	    \
+                             G_GNUC_PRETTY_FUNCTION,	    \
 	                           #expr);		  }G_STMT_END
 
 static void


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