summaryrefslogtreecommitdiff
path: root/x11/libxfce4util/patches/patch-aa
blob: 985734272b980857a9b0768a2f59a6ebf90c5cc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aa,v 1.3 2006/11/28 19:20:34 rillig Exp $

No, it's not ok. Except for GNU C.

--- libxfce4util/xfce-miscutils.h.orig	2005-11-15 12:59:47.000000000 +0100
+++ libxfce4util/xfce-miscutils.h	2006-11-28 20:11:55.609975108 +0100
@@ -32,12 +32,11 @@
 
 #include <libxfce4util/debug.h>
 
-/* This looks a bit "hacky", but its ok */
-#define _BUILTIN_LICENSE_TEXT(name) \
-({ \
-  extern const char xfce_builtin_license_##name[]; \
-  xfce_builtin_license_##name; \
-})
+extern const char xfce_builtin_license_BSD[];
+extern const char xfce_builtin_license_GPL[];
+extern const char xfce_builtin_license_LGPL[];
+
+#define _BUILTIN_LICENSE_TEXT(name) xfce_builtin_license_##name
 
 #define XFCE_LICENSE_BSD  _BUILTIN_LICENSE_TEXT(BSD)