RFC: IDN support in getaddrinfo().
Andreas Jaeger
aj@suse.de
Mon Mar 8 06:53:00 GMT 2004
I get the following warnings compiling the code:
toutf8.c:161: warning: implicit declaration of function `MAX'
toutf8.c:161: warning: implicit declaration of function `MAX'
/cvs/libc/libidn/toutf8.c:161: warning: undefined reference to `MAX'
Ok to commit the appended patch?
Andreas
2004-03-08 Andreas Jaeger <aj@suse.de>
* toutf8.c: Define MAX.
============================================================
Index: libidn/toutf8.c
--- libidn/toutf8.c 8 Mar 2004 03:54:02 -0000 1.1
+++ libidn/toutf8.c 8 Mar 2004 06:52:29 -0000
@@ -44,6 +44,13 @@
# include <locale.h>
# endif
+#ifndef MAX
+#define MAX(a, b) ({ __typeof__ (a) _a = (a); \
+ __typeof__ (b) _b = (b); \
+ _a > _b ? _a : _b; })
+#endif
+
+
# ifndef _LIBC
static const char *
stringprep_locale_charset_slow (void)
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040308/6f68a799/attachment.sig>
More information about the Libc-alpha
mailing list