summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subreader.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/subreader.c b/subreader.c
index 66b52a0f7b..6ecf2f4c8b 100644
--- a/subreader.c
+++ b/subreader.c
@@ -25,7 +25,6 @@
#endif
#define ERR ((void *) -1)
-#define eol(x) ((x)=='\r' || (x)=='\n' || (x)=='\0')
#ifdef USE_ICONV
#include <iconv.h>
@@ -68,6 +67,10 @@ int sub_format=SUB_INVALID;
unsigned long previous_sub_end;
#endif
+static int eol(char p) {
+ return (p=='\r' || p=='\n' || p=='\0');
+}
+
/* Remove leading and trailing space */
static void trail_space(char *s) {
int i = 0;