tidy-up: prefer ifdef/ifndef for single checks

Closes #18018
This commit is contained in:
Viktor Szakats 2025-07-25 14:31:16 +02:00
parent b2bccdc257
commit 89771d19d5
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
109 changed files with 319 additions and 324 deletions

View file

@ -24,7 +24,7 @@
#include "../curl_setup.h"
#if defined(USE_SSH)
#ifdef USE_SSH
#include "curl_path.h"
#include <curl/curl.h>

View file

@ -26,7 +26,7 @@
#include "../curl_setup.h"
#if defined(USE_LIBSSH2)
#ifdef USE_LIBSSH2
#include <libssh2.h>
#include <libssh2_sftp.h>
#elif defined(USE_LIBSSH)
@ -162,7 +162,7 @@ struct ssh_conn {
int orig_waitfor; /* default READ/WRITE bits wait for */
char *slash_pos; /* used by the SFTP_CREATE_DIRS state */
#if defined(USE_LIBSSH)
#ifdef USE_LIBSSH
CURLcode actualcode; /* the actual error code */
char *readdir_linkPath;
size_t readdir_len;
@ -228,7 +228,7 @@ struct ssh_conn {
#endif
#endif
#if defined(USE_LIBSSH2)
#ifdef USE_LIBSSH2
/* Feature detection based on version numbers to better work with
non-configure platforms */