summaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/scheme.c
diff options
context:
space:
mode:
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>2017-03-07 13:54:49 +0100
committerJustus Winter <justus@g10code.com>2017-03-07 14:33:27 +0100
commitc22a2a89d3bd3d08b3abb8e4e33df32b480338ec (patch)
tree3b701b0266fa358921ebaf331c2b5f07514da808 /tests/gpgscm/scheme.c
parentgpg: Do not allow the user to revoke the last valid UID. (diff)
downloadgnupg2-c22a2a89d3bd3d08b3abb8e4e33df32b480338ec.tar.xz
gnupg2-c22a2a89d3bd3d08b3abb8e4e33df32b480338ec.zip
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@g10code.com>
Diffstat (limited to 'tests/gpgscm/scheme.c')
-rw-r--r--tests/gpgscm/scheme.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index b2ff72145..af97c27d6 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) {