Use more appropriate file name for 'stdin' input on Win32.
This commit is contained in:
parent
eb3f56e210
commit
1fb3709fa7
8
crc64.c
8
crc64.c
@ -199,10 +199,14 @@ static int is_directory(FILE *const file)
|
|||||||
/* Process File */
|
/* Process File */
|
||||||
/* ======================================================================== */
|
/* ======================================================================== */
|
||||||
|
|
||||||
const CHAR *const STR_STDIN = T("/dev/stdin");
|
|
||||||
|
|
||||||
#define BUFF_SIZE 4096U
|
#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)
|
static int process(const CHAR *const file_name, const int options)
|
||||||
{
|
{
|
||||||
int retval = EXIT_FAILURE;
|
int retval = EXIT_FAILURE;
|
||||||
|
Loading…
Reference in New Issue
Block a user