Skip to content

Commit bf17509

Browse files
author
Michael Dec
committed
OS HEXLINE and NEWLINE macros are now identical
Newer version of grepline does not count CR, which was being read on Linux.
1 parent 5463e0f commit bf17509

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

main.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@
55

66
#include "grepline.h"
77

8+
#define OS_HEXLINE 16
9+
#define OS_NEWLINE 1
10+
811
#ifdef _WIN32
9-
# define OS_HEXLINE 16
10-
# define OS_NEWLINE 1
1112
# define READ "rb"
1213
# define WRITE "wb"
1314
# ifndef _CRT_SECURE_NO_WARNINGS
1415
# define _CRT_SECURE_NO_WARNINGS
1516
# endif /*_CRT_SECURE_NO_WARNINGS*/
1617
# elif linux
17-
# define OS_HEXLINE 17
18-
# define OS_NEWLINE 2
1918
# define READ "r"
2019
# define WRITE "w"
2120
# else

0 commit comments

Comments
 (0)