X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flocale.in.h;h=193e9375ec16c513bf83107d22c14e43c3c2f4df;hb=cbd5934b1918d73022d1d1d9904112f3d6d7f187;hp=b8031e184cea96dd3716db7b215d065bdcfe70a7;hpb=b4349b948ba2c352187158e241334abda6e473e9;p=pspp diff --git a/lib/locale.in.h b/lib/locale.in.h index b8031e184c..193e9375ec 100644 --- a/lib/locale.in.h +++ b/lib/locale.in.h @@ -34,10 +34,10 @@ # include #endif -/* The definition of GL_LINK_WARNING is copied here. */ - /* The definition of _GL_ARG_NONNULL is copied here. */ +/* The definition of _GL_WARN_ON_USE is copied here. */ + /* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C. On systems that don't define it, use the same value as GNU libintl. */ #if !defined LC_MESSAGES @@ -52,10 +52,10 @@ extern locale_t duplocale (locale_t locale) _GL_ARG_NONNULL ((1)); # endif #elif defined GNULIB_POSIXCHECK # undef duplocale -# define duplocale(l) \ - (GL_LINK_WARNING ("duplocale is buggy on some glibc systems - " \ - "use gnulib module duplocale for portability"), \ - duplocale (l)) +# if HAVE_RAW_DECL_DUPLOCALE +_GL_WARN_ON_USE (duplocale, "duplocale is buggy on some glibc systems - " + "use gnulib module duplocale for portability"); +# endif #endif #endif /* _GL_LOCALE_H */