diff --git a/include/types.h b/include/types.h index 85783472c..67a91b1f0 100644 --- a/include/types.h +++ b/include/types.h @@ -6,6 +6,12 @@ #ifndef TYPES_H #define TYPES_H +#ifdef _WIN +#define EOL "\r\n" +#else +#define EOL "\n" +#endif + typedef struct { uint salt_buf[16]; diff --git a/src/hashcat.c b/src/hashcat.c index 1f95f17f8..b205cc84d 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -907,15 +907,7 @@ void status_display_machine_readable () * flush */ - #ifdef _WIN - fputc ('\r', out); - fputc ('\n', out); - #endif - - #ifdef _POSIX - fputc ('\n', out); - #endif - + fputs (EOL, out); fflush (out); }