Author: benny
Date: 2006-08-12 16:04:34 +0000 (Sat, 12 Aug 2006)
New Revision: 22724

Modified:
   libxfce4util/trunk/ChangeLog
   libxfce4util/trunk/libxfce4util/xfce-generics.h
Log:
2006-08-12      Benedikt Meurer <[EMAIL PROTECTED]>

        * libxfce4util/xfce-generics.h(xfce_stack_top): Enable compilation
          with compilers other than gcc. Bug #1851.




Modified: libxfce4util/trunk/ChangeLog
===================================================================
--- libxfce4util/trunk/ChangeLog        2006-08-12 15:00:35 UTC (rev 22723)
+++ libxfce4util/trunk/ChangeLog        2006-08-12 16:04:34 UTC (rev 22724)
@@ -1,3 +1,8 @@
+2006-08-12     Benedikt Meurer <[EMAIL PROTECTED]>
+
+       * libxfce4util/xfce-generics.h(xfce_stack_top): Enable compilation
+         with compilers other than gcc. Bug #1851.
+
 2006-07-10     Benedikt Meurer <[EMAIL PROTECTED]>
 
        * configure.in.in: Post-release version bump.

Modified: libxfce4util/trunk/libxfce4util/xfce-generics.h
===================================================================
--- libxfce4util/trunk/libxfce4util/xfce-generics.h     2006-08-12 15:00:35 UTC 
(rev 22723)
+++ libxfce4util/trunk/libxfce4util/xfce-generics.h     2006-08-12 16:04:34 UTC 
(rev 22724)
@@ -61,11 +61,15 @@
   G_STMT_END
 
 
+#ifdef __GNUC__
 #define xfce_stack_top(stack)                                               \
   ({                                                                        \
     g_assert (stack->top >= 0);                                             \
     stack->elements[stack->top];                                            \
   })
+#else
+#define xfce_stack_top(stack) ((stack)->elements[(stack)->top])
+#endif
 
 
 #define xfce_stack_pop(stack)                                               \

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to