commit: 3b00486fb75941e66bcc829d4e0481d6a349cc82 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Fri Jun 7 12:19:32 2019 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Fri Jun 7 12:19:32 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=3b00486f
applets.h: loose __weak__ attribute stuff defining this attribute breaks Cygwin, but more importantly it is not necessary with the current (much more normal) way of building and linking q. Bug: https://bugs.gentoo.org/687560 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> applets.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/applets.h b/applets.h index 902e664..d8383d4 100644 --- a/applets.h +++ b/applets.h @@ -35,8 +35,7 @@ extern int getopt_long(int, char * const *, const char *, /* applet prototypes */ typedef int (*APPLET)(int, char **); -#define DECLARE_APPLET(applet) \ - extern int applet##_main(int, char **) __attribute__((weak)); +#define DECLARE_APPLET(applet) extern int applet##_main(int, char **); DECLARE_APPLET(q) DECLARE_APPLET(qatom) DECLARE_APPLET(qcheck)