public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix libc alpha & ia64 build
@ 2002-08-08  4:41 Jakub Jelinek
  2002-08-08  4:45 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2002-08-08  4:41 UTC (permalink / raw)
  To: Ulrich Drepper, Roland McGrath; +Cc: Glibc hackers

Hi!

The usual weak_alias doesn't like if prototypes are different...

2002-08-08  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
	else and undefine after including wcstol_l.c.
	* sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.

--- libc/sysdeps/wordsize-64/wcstol_l.c.jj	2002-08-08 10:39:28.000000000 +0200
+++ libc/sysdeps/wordsize-64/wcstol_l.c	2002-08-08 13:56:54.000000000 +0200
@@ -1,11 +1,13 @@
 /* We have to irritate the compiler a bit.  */
 #define ____wcstoll_l_internal ____wcstoll_l_internal_XXX
-#define __wcstoll_l __wcstoll_l_XXX
+#define __wcstoll_l ___wcstoll_l_XXX
+#define wcstoll_l __wcstoll_l_XX
 
 #include <sysdeps/generic/wcstol_l.c>
 
 #undef ____wcstoll_l_internal
 #undef __wcstoll_l
+#undef wcstoll_l
 strong_alias (____wcstol_l_internal, ____wcstoll_l_internal)
 weak_alias (__wcstol_l, __wcstoll_l)
 weak_alias (__wcstol_l, wcstoll_l)
--- libc/sysdeps/wordsize-64/wcstoul_l.c.jj	2002-08-08 10:39:28.000000000 +0200
+++ libc/sysdeps/wordsize-64/wcstoul_l.c	2002-08-08 13:56:54.000000000 +0200
@@ -1,11 +1,13 @@
 /* We have to irritate the compiler a bit.  */
 #define ____wcstoull_l_internal ____wcstoull_l_internal_XXX
-#define __wcstoull_l __wcstoull_l_XXX
+#define __wcstoull_l ___wcstoull_l_XXX
+#define wcstoull_l __wcstoull_l_XXX
 
 #include <sysdeps/generic/wcstoul_l.c>
 
 #undef ____wcstoull_l_internal
 #undef __wcstoull_l
+#undef wcstoull_l
 strong_alias (____wcstoul_l_internal, ____wcstoull_l_internal)
 weak_alias (__wcstoul_l, __wcstoull_l)
 weak_alias (__wcstoul_l, wcstoull_l)

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix libc alpha & ia64 build
  2002-08-08  4:41 [PATCH] Fix libc alpha & ia64 build Jakub Jelinek
@ 2002-08-08  4:45 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2002-08-08  4:45 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Roland McGrath, Glibc hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub Jelinek wrote:

> The usual weak_alias doesn't like if prototypes are different...

Thanks, I've applied it.

- -- 
- ---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9UlnU2ijCOnn/RHQRAjweAJwP/u7TvjTFKe4/lC6ECW4f3WvShwCfed4u
3DQZujhhNfFUkqTE8/MXdyc=
=vDsE
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-08 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-08  4:41 [PATCH] Fix libc alpha & ia64 build Jakub Jelinek
2002-08-08  4:45 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).