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:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user