bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: add 'posixcheck' support to 'fnmatch'


From: Bruno Haible
Subject: Re: add 'posixcheck' support to 'fnmatch'
Date: Sat, 11 Aug 2018 02:24:23 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-130-generic; KDE/5.18.0; x86_64; ; )

A small improvement:


2018-08-10  Bruno Haible  <address@hidden>

        fnmatch: Fix compilation error in C++ namespace mode on Mac OS X.
        * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
        * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
        'fnmatch-gnu' is in use.

diff --git a/lib/fnmatch.in.h b/lib/fnmatch.in.h
index 50eeed7..e15d6cc 100644
--- a/lib/fnmatch.in.h
+++ b/lib/fnmatch.in.h
@@ -93,7 +93,9 @@ _GL_FUNCDECL_SYS (fnmatch, int,
 _GL_CXXALIAS_SYS (fnmatch, int,
                   (const char *pattern, const char *name, int flags));
 # endif
+# if !GNULIB_FNMATCH_GNU
 _GL_CXXALIASWARN (fnmatch);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef fnmatch
 # if HAVE_RAW_DECL_FNMATCH
diff --git a/modules/fnmatch-gnu b/modules/fnmatch-gnu
index 5472627..86b5225 100644
--- a/modules/fnmatch-gnu
+++ b/modules/fnmatch-gnu
@@ -12,6 +12,7 @@ if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
   AC_LIBOBJ([fnmatch])
   gl_PREREQ_FNMATCH
 fi
+gl_MODULE_INDICATOR([fnmatch-gnu])
 
 Makefile.am:
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]