+2006-03-11 Bruno Haible <bruno@clisp.org>
+
+ * libgnuintl.h.in (_INTL_MAY_RETURN_STRING_ARG): Define to empty when
+ using g++ on MacOS X.
+
2006-01-22 Bruno Haible <bruno@clisp.org>
* vasnprintf.c (VASNPRINTF): In the computation of the size of the
/* Message catalogs for internationalization.
- Copyright (C) 1995-1997, 2000-2005 Free Software Foundation, Inc.
+ Copyright (C) 1995-1997, 2000-2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published
/* _INTL_MAY_RETURN_STRING_ARG(n) declares that the given function may return
its n-th argument literally. This enables GCC to warn for example about
printf (gettext ("foo %y")). */
-#if __GNUC__ >= 3
+#if __GNUC__ >= 3 && !(__APPLE_CC__ > 1 && defined __cplusplus)
# define _INTL_MAY_RETURN_STRING_ARG(n) __attribute__ ((__format_arg__ (n)))
#else
# define _INTL_MAY_RETURN_STRING_ARG(n)