diff options
author | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2017-03-07 13:54:49 +0100 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2017-03-07 14:33:27 +0100 |
commit | c22a2a89d3bd3d08b3abb8e4e33df32b480338ec (patch) | |
tree | 3b701b0266fa358921ebaf331c2b5f07514da808 /tests/gpgscm/scheme.c | |
parent | gpg: Do not allow the user to revoke the last valid UID. (diff) | |
download | gnupg2-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.c | 6 |
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) { |