X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flanginfo.in.h;h=3d3e2baa3a36b93a48e1afff9db9c6171c111c35;hb=cbd5934b1918d73022d1d1d9904112f3d6d7f187;hp=9aedbb48b9b296b4b5b6fb84d6fcd66ae9d7d2f0;hpb=b4349b948ba2c352187158e241334abda6e473e9;p=pspp diff --git a/lib/langinfo.in.h b/lib/langinfo.in.h index 9aedbb48b9..3d3e2baa3a 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