X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fstpncpy.m4;h=78627108ba98bd0e4879400eeca7d0884f10315d;hb=refs%2Ftags%2Fstable%2F20111211;hp=cc7796a5590a11465ee317143efec7f38cd643ee;hpb=d599e5add275f75ed08e6527b8ee4d3f4f7c3aea;p=gnulib.git diff --git a/m4/stpncpy.m4 b/m4/stpncpy.m4 index cc7796a55..78627108b 100644 --- a/m4/stpncpy.m4 +++ b/m4/stpncpy.m4 @@ -1,4 +1,4 @@ -# stpncpy.m4 serial 13 +# stpncpy.m4 serial 15 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2011 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation @@ -35,7 +35,11 @@ AC_DEFUN([gl_FUNC_STPNCPY], #include /* for strcpy */ /* The stpncpy prototype is missing in on AIX 4. */ #if !HAVE_DECL_STPNCPY -extern char *stpncpy (char *dest, const char *src, size_t n); +extern +# ifdef __cplusplus +"C" +# endif +char *stpncpy (char *dest, const char *src, size_t n); #endif int main () { @@ -78,13 +82,9 @@ int main () [Define if you have the stpncpy() function and it works.]) else REPLACE_STPNCPY=1 - AC_LIBOBJ([stpncpy]) - gl_PREREQ_STPNCPY fi else HAVE_STPNCPY=0 - AC_LIBOBJ([stpncpy]) - gl_PREREQ_STPNCPY fi ])