From bf17509d4462561c8a60893517b67118f0c06b19 Mon Sep 17 00:00:00 2001 From: Michael Dec Date: Thu, 27 Feb 2014 12:36:39 +0000 Subject: [PATCH] OS HEXLINE and NEWLINE macros are now identical Newer version of grepline does not count CR, which was being read on Linux. --- main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index dfb4c1c..8fcb00a 100644 --- a/main.c +++ b/main.c @@ -5,17 +5,16 @@ #include "grepline.h" +#define OS_HEXLINE 16 +#define OS_NEWLINE 1 + #ifdef _WIN32 -# define OS_HEXLINE 16 -# define OS_NEWLINE 1 # define READ "rb" # define WRITE "wb" # ifndef _CRT_SECURE_NO_WARNINGS # define _CRT_SECURE_NO_WARNINGS # endif /*_CRT_SECURE_NO_WARNINGS*/ # elif linux -# define OS_HEXLINE 17 -# define OS_NEWLINE 2 # define READ "r" # define WRITE "w" # else