Loading lib/setup.h +0 −18 Original line number Diff line number Diff line Loading @@ -96,24 +96,6 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO) #endif #endif #if 0 /* zlib experiments are halted 17th october, 1999 (Daniel) */ #if defined(HAVE_ZLIB_H) && defined(HAVE_LIBZ) /* Both lib and header file exist, we have libz! */ #define USE_ZLIB #endif #endif #if 0 #ifdef HAVE_STRCASECMP #define strnequal(x,y,z) !(strncasecmp)(x,y,z) #define strequal(x,y) !(strcasecmp)(x,y) #else #define strnequal(x,y,z) !strnicmp(x,y,z) #define strequal(x,y) !stricmp(x,y) #endif #endif /* Below we define four functions. They should 1. close a socket 2. read from a socket Loading lib/strequal.c +3 −3 Original line number Diff line number Diff line Loading @@ -28,11 +28,11 @@ int curl_strequal(const char *first, const char *second) { #if defined(HAVE_STRCASECMP) return !strcasecmp(first, second); return !(strcasecmp)(first, second); #elif defined(HAVE_STRCMPI) return !strcmpi(first, second); return !(strcmpi)(first, second); #elif defined(HAVE_STRICMP) return !stricmp(first, second); return !(stricmp)(first, second); #else while (*first && *second) { if (toupper(*first) != toupper(*second)) { Loading Loading
lib/setup.h +0 −18 Original line number Diff line number Diff line Loading @@ -96,24 +96,6 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO) #endif #endif #if 0 /* zlib experiments are halted 17th october, 1999 (Daniel) */ #if defined(HAVE_ZLIB_H) && defined(HAVE_LIBZ) /* Both lib and header file exist, we have libz! */ #define USE_ZLIB #endif #endif #if 0 #ifdef HAVE_STRCASECMP #define strnequal(x,y,z) !(strncasecmp)(x,y,z) #define strequal(x,y) !(strcasecmp)(x,y) #else #define strnequal(x,y,z) !strnicmp(x,y,z) #define strequal(x,y) !stricmp(x,y) #endif #endif /* Below we define four functions. They should 1. close a socket 2. read from a socket Loading
lib/strequal.c +3 −3 Original line number Diff line number Diff line Loading @@ -28,11 +28,11 @@ int curl_strequal(const char *first, const char *second) { #if defined(HAVE_STRCASECMP) return !strcasecmp(first, second); return !(strcasecmp)(first, second); #elif defined(HAVE_STRCMPI) return !strcmpi(first, second); return !(strcmpi)(first, second); #elif defined(HAVE_STRICMP) return !stricmp(first, second); return !(stricmp)(first, second); #else while (*first && *second) { if (toupper(*first) != toupper(*second)) { Loading