From 1fb3709fa7e8c5a886e901fdd2567a25964643eb Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sun, 11 Sep 2022 21:41:34 +0200 Subject: [PATCH] Use more appropriate file name for 'stdin' input on Win32. --- crc64.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crc64.c b/crc64.c index 70a799f..8ddc055 100644 --- a/crc64.c +++ b/crc64.c @@ -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;