[git] GnuPG - branch, master, updated. gnupg-2.1.19-37-gc22a2a8

by Michael Haubenwallner cvs at cvs.gnupg.org
Tue Mar 7 14:34:38 CET 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  c22a2a89d3bd3d08b3abb8e4e33df32b480338ec (commit)
      from  591b6a9d879cbcabb089d89a26d3c3e0306054e1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c22a2a89d3bd3d08b3abb8e4e33df32b480338ec
Author: Michael Haubenwallner <michael.haubenwallner at ssi-schaefer.com>
Date:   Tue Mar 7 13:54:49 2017 +0100

    gpgscm: Use system strlwr if available.
    
    * tests/gpgscm/scheme.c: Define local strlwr only when HAVE_STRLWR is
    not defined in config.h.
    * tests/gpgscm/scheme-config.h: Remove hack.
    
    Signed-off-by: Justus Winter <justus at g10code.com>

diff --git a/tests/gpgscm/scheme-config.h b/tests/gpgscm/scheme-config.h
index 2003498..15ca969 100644
--- a/tests/gpgscm/scheme-config.h
+++ b/tests/gpgscm/scheme-config.h
@@ -30,7 +30,3 @@
 #define USE_PLIST		0
 #define USE_INTERFACE		1
 #define SHOW_ERROR_LINE		1
-
-#if __MINGW32__
-# define USE_STRLWR 0
-#endif /* __MINGW32__ */
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index b2ff721..af97c27 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -12,6 +12,10 @@
  *
  */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #define _SCHEME_SOURCE
 #include "scheme-private.h"
 #ifndef WIN32
@@ -88,7 +92,7 @@ static int stricmp(const char *s1, const char *s2)
 }
 #endif /* __APPLE__ */
 
-#if USE_STRLWR
+#if USE_STRLWR && !defined(HAVE_STRLWR)
 static const char *strlwr(char *s) {
   const char *p=s;
   while(*s) {

-----------------------------------------------------------------------

Summary of changes:
 tests/gpgscm/scheme-config.h | 4 ----
 tests/gpgscm/scheme.c        | 6 +++++-
 2 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list