X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Fstrndup.m4;h=e1ac20b8aa437cb32eee9edcc1ec84b4dc78ac99;hb=cf00d49188ce187174233c0a5e7bd018340a8aab;hp=969e3191a40fbec0ea2f6319d9ff5b560660308f;hpb=5ad9e4b03ed0569378cbb2f29b0c3283f1bbd9c5;p=gnulib.git diff --git a/m4/strndup.m4 b/m4/strndup.m4 index 969e3191a..e1ac20b8a 100644 --- a/m4/strndup.m4 +++ b/m4/strndup.m4 @@ -1,4 +1,4 @@ -# strndup.m4 serial 19 +# strndup.m4 serial 20 dnl Copyright (C) 2002-2003, 2005-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -25,7 +25,11 @@ AC_DEFUN([gl_FUNC_STRNDUP], AC_LANG_PROGRAM([[#include #include ]], [[ #ifndef HAVE_DECL_STRNDUP - extern char *strndup (const char *, size_t); + extern + #ifdef __cplusplus + "C" + #endif + char *strndup (const char *, size_t); #endif char *s; s = strndup ("some longer string", 15);