Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /
Date: Fri, 07 Jun 2019 12:20:49
Message-Id: 1559909972.3b00486fb75941e66bcc829d4e0481d6a349cc82.grobian@gentoo
1 commit: 3b00486fb75941e66bcc829d4e0481d6a349cc82
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 7 12:19:32 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 7 12:19:32 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=3b00486f
7
8 applets.h: loose __weak__ attribute stuff
9
10 defining this attribute breaks Cygwin, but more importantly it is not
11 necessary with the current (much more normal) way of building and
12 linking q.
13
14 Bug: https://bugs.gentoo.org/687560
15 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
16
17 applets.h | 3 +--
18 1 file changed, 1 insertion(+), 2 deletions(-)
19
20 diff --git a/applets.h b/applets.h
21 index 902e664..d8383d4 100644
22 --- a/applets.h
23 +++ b/applets.h
24 @@ -35,8 +35,7 @@ extern int getopt_long(int, char * const *, const char *,
25 /* applet prototypes */
26 typedef int (*APPLET)(int, char **);
27
28 -#define DECLARE_APPLET(applet) \
29 - extern int applet##_main(int, char **) __attribute__((weak));
30 +#define DECLARE_APPLET(applet) extern int applet##_main(int, char **);
31 DECLARE_APPLET(q)
32 DECLARE_APPLET(qatom)
33 DECLARE_APPLET(qcheck)