1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00

misc: drop ssh2_fopen() macro redirect on Windows

To follow the pattern used for sibling cases.

Follow-up to 521146a4f1 #2318

Closes #2329
This commit is contained in:
Viktor Szakats
2026-07-16 14:42:59 +02:00
parent 1bc6e2c3c5
commit a8870f082d
2 changed files with 2 additions and 3 deletions

View File

@@ -1193,7 +1193,7 @@ cleanup:
return !!*out;
}
FILE *ssh2_win32_fopen(const char *filename, const char *mode)
FILE *ssh2_fopen(const char *filename, const char *mode)
{
FILE *fp = NULL;
TCHAR *fixed = NULL;

View File

@@ -35,8 +35,7 @@
#include <errno.h>
#ifdef _WIN32
FILE *ssh2_win32_fopen(const char *filename, const char *mode);
#define ssh2_fopen ssh2_win32_fopen
FILE *ssh2_fopen(const char *filename, const char *mode);
#else
#define ssh2_fopen fopen
#endif