summaryrefslogtreecommitdiff
path: root/x11/libxfce4util/patches/patch-aa
blob: 750229168cc5a88dfe7de5a3d478946edf3f9898 (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.4 2007/01/23 11:53:47 martti Exp $

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

--- libxfce4util/xfce-miscutils.h.orig	2007-01-13 21:41:32.000000000 +0000
+++ libxfce4util/xfce-miscutils.h	2007-01-23 11:26:14.000000000 +0000
@@ -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
 
 #if defined (__sun)
 	extern const char xfce_builtin_license_BSD[];