diff options
author | Michael Haubenwallner <[email protected]> | 2017-03-07 12:54:49 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-03-07 13:33:27 +0000 |
commit | ca3d31ec77612cecc16c376ac7c06ce09541b28e (patch) | |
tree | 6169b603350d894964c55488510ed46250766366 | |
parent | More change for common. (diff) | |
download | libgpg-error-ca3d31ec77612cecc16c376ac7c06ce09541b28e.tar.gz libgpg-error-ca3d31ec77612cecc16c376ac7c06ce09541b28e.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 <[email protected]>
-rw-r--r-- | scheme-config.h | 4 | ||||
-rw-r--r-- | scheme.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/scheme-config.h b/scheme-config.h index 2003498..15ca969 100644 --- a/scheme-config.h +++ b/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__ */ @@ -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) { |