Skip to content

Commit

Permalink
OS HEXLINE and NEWLINE macros are now identical
Browse files Browse the repository at this point in the history
Newer version of grepline does not count CR, which was being read on Linux.
  • Loading branch information
Michael Dec committed Feb 27, 2014
1 parent 5463e0f commit bf17509
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf17509

Please sign in to comment.