X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flanginfo.in.h;h=3d3e2baa3a36b93a48e1afff9db9c6171c111c35;hb=9f46144c41dd826d3bba1456f3f73497c570e87d;hp=9aedbb48b9b296b4b5b6fb84d6fcd66ae9d7d2f0;hpb=8d8eda4eab3d2801251daf4eb31756c3595e2fc6;p=gnulib.git diff --git a/lib/langinfo.in.h b/lib/langinfo.in.h index 9aedbb48b..3d3e2baa3 100644 --- a/lib/langinfo.in.h +++ b/lib/langinfo.in.h @@ -123,7 +123,7 @@ typedef int nl_item; #endif -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definition of _GL_WARN_ON_USE is copied here. */ /* Declare overridden functions. */ @@ -146,10 +146,10 @@ extern char *nl_langinfo (nl_item item); # endif #elif defined GNULIB_POSIXCHECK # undef nl_langinfo -# define nl_langinfo(i) \ - (GL_LINK_WARNING ("nl_langinfo is not portable - " \ - "use gnulib module nl_langinfo for portability"), \ - nl_langinfo (i)) +# if HAVE_RAW_DECL_NL_LANGINFO +_GL_WARN_ON_USE (nl_langinfo, "nl_langinfo is not portable - " + "use gnulib module nl_langinfo for portability"); +# endif #endif