Use more appropriate file name for 'stdin' input on Win32.

This commit is contained in:
LoRd_MuldeR 2022-09-11 21:41:34 +02:00
parent eb3f56e210
commit 1fb3709fa7

View File

@ -199,10 +199,14 @@ static int is_directory(FILE *const file)
/* Process File */
/* ======================================================================== */
const CHAR *const STR_STDIN = T("/dev/stdin");
#define BUFF_SIZE 4096U
#ifdef _WIN32
const wchar_t *const STR_STDIN = L"CONIN$";
#else
const char *const STR_STDIN = "/dev/stdin";
#endif
static int process(const CHAR *const file_name, const int options)
{
int retval = EXIT_FAILURE;